-
Notifications
You must be signed in to change notification settings - Fork 0
Add Items #2
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels