本人正尝试把巫师mod里某巨剑的技能AP消耗-1但不知道怎改好, 有没有大佬可以愿意帮忙? 谢谢
以下是文件里的数据
this.guts_greatsword <- this.inherit("scripts/items/weapons/weapon", {
m = {
StunChance = 0
},
function create()
{
this.weapon.create();
this.m.ID = "weapon.guts_greatsword";
this.m.Name = "Greatsword";
this.m.Description = "A long two-handed blade that makes for a versatile weapon.";
this.m.Categories = "Sword, Two-Handed";
this.m.IconLarge = "weapons/melee/inventory_guts_sword_02.png";
this.m.Icon = "weapons/melee/inventory_guts_sword_02_70x70.png";
this.m.SlotType = this.Const.ItemSlot.Mainhand;
this.m.BlockedSlotType = this.Const.ItemSlot.Offhand;
this.m.ItemType = this.Const.Items.ItemType.Weapon | this.Const.Items.ItemType.MeleeWeapon | this.Const.Items.ItemType.TwoHanded;
this.m.IsAgainstShields = true;
this.m.IsAoE = true;
this.m.AddGenericSkill = true;
this.m.ShowQuiver = false;
this.m.ShowArmamentIcon = true;
this.m.ArmamentIcon = "icon_guts_sword_03";
this.m.Value = 1700;
this.m.ShieldDamage = 12;
this.m.Condition = 60.0;
this.m.ConditionMax = 60.0;
this.m.StaminaModifier = -10;
this.m.RegularDamage = 65;
this.m.RegularDamageMax = 85;
this.m.ArmorDamageMult = 1.0;
this.m.DirectDamageMult = 0.25;
this.m.ChanceToHitHead = 5;
}
function onEquip()
{
this.weapon.onEquip();
local skillToAdd = this.new("scripts/skills/actives/overhead_strike");
skillToAdd.setStunChance(this.m.StunChance);
this.addSkill(skillToAdd);
this.addSkill(this.new("scripts/skills/actives/split"));
this.addSkill(this.new("scripts/skills/actives/swing"));
local skillToAdd = this.new("scripts/skills/actives/split_shield");
skillToAdd.setFatigueCost(skillToAdd.getFatigueCostRaw() + 5);
this.addSkill(skillToAdd);
}
});
以下是文件里的数据
this.guts_greatsword <- this.inherit("scripts/items/weapons/weapon", {
m = {
StunChance = 0
},
function create()
{
this.weapon.create();
this.m.ID = "weapon.guts_greatsword";
this.m.Name = "Greatsword";
this.m.Description = "A long two-handed blade that makes for a versatile weapon.";
this.m.Categories = "Sword, Two-Handed";
this.m.IconLarge = "weapons/melee/inventory_guts_sword_02.png";
this.m.Icon = "weapons/melee/inventory_guts_sword_02_70x70.png";
this.m.SlotType = this.Const.ItemSlot.Mainhand;
this.m.BlockedSlotType = this.Const.ItemSlot.Offhand;
this.m.ItemType = this.Const.Items.ItemType.Weapon | this.Const.Items.ItemType.MeleeWeapon | this.Const.Items.ItemType.TwoHanded;
this.m.IsAgainstShields = true;
this.m.IsAoE = true;
this.m.AddGenericSkill = true;
this.m.ShowQuiver = false;
this.m.ShowArmamentIcon = true;
this.m.ArmamentIcon = "icon_guts_sword_03";
this.m.Value = 1700;
this.m.ShieldDamage = 12;
this.m.Condition = 60.0;
this.m.ConditionMax = 60.0;
this.m.StaminaModifier = -10;
this.m.RegularDamage = 65;
this.m.RegularDamageMax = 85;
this.m.ArmorDamageMult = 1.0;
this.m.DirectDamageMult = 0.25;
this.m.ChanceToHitHead = 5;
}
function onEquip()
{
this.weapon.onEquip();
local skillToAdd = this.new("scripts/skills/actives/overhead_strike");
skillToAdd.setStunChance(this.m.StunChance);
this.addSkill(skillToAdd);
this.addSkill(this.new("scripts/skills/actives/split"));
this.addSkill(this.new("scripts/skills/actives/swing"));
local skillToAdd = this.new("scripts/skills/actives/split_shield");
skillToAdd.setFatigueCost(skillToAdd.getFatigueCostRaw() + 5);
this.addSkill(skillToAdd);
}
});