Add item types, very similar to Traits with the base stats, but we should be able to
- Assign Effects To the weapons
- Allow Traits and Units to receive weapons
Note:
for traits think bakc to the weapon manager
if (pTarget.a.hasTrait("God Of the Night"))
{
ItemData darkDaggerD = new ItemData();
darkDaggerD.id = "DarkDagger";
darkDaggerD.material = "adamantine";
var weaponSlot = pTarget.a.equipment.getSlot(EquipmentType.Weapon);
if (weaponSlot != null)
{
weaponSlot.setItem(darkDaggerD);
}
pTarget.a.setStatsDirty();
}
We could easily make this a global, OR we could make it a variable (Or both, probably both)
For units its easier we just assign default attack to the item ID
Add item types, very similar to Traits with the base stats, but we should be able to
Note:
for traits think bakc to the weapon manager
We could easily make this a global, OR we could make it a variable (Or both, probably both)
For units its easier we just assign default attack to the item ID