Skip to content

Add Items #2

@MasonScarbro

Description

@MasonScarbro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions