public static NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo ClassRestrictionItemProperty(int classId) { NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo ip = new NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo(); ip.PropertyName = new OEIShared.IO.TwoDA.TwoDAReference("itempropdef", "Name", true, 63); ip.Subtype = new OEIShared.IO.TwoDA.TwoDAReference("classes", "Name", true, classId); return ip; }
public static NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo CastSpell1ChargeItemProperty(ushort iprp_spellsIndex) { NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo ip = new NWN2Toolset.NWN2.Data.Templates.NWN2ItemPropertyInfo(); ip.CostTable = new OEIShared.IO.TwoDA.TwoDAReference("iprp_costtable", "Name", false, 3); ip.CostValue = new OEIShared.IO.TwoDA.TwoDAReference("iprp_chargecost", "Name", false, 6); ip.Subtype = new OEIShared.IO.TwoDA.TwoDAReference("iprp_spells", "SpellIndex", false, iprp_spellsIndex); ip.PropertyName = new OEIShared.IO.TwoDA.TwoDAReference("itempropdef", "Name", true, 15); return ip; }