Open Creighcl opened 1 year ago
This is primarily handled within the State/StatSheets scripts.
PlayerItem is a StatMatrix class, storing stat adjustments for a PlayerAvatar. An item is assigned an Item "Slot" that matches a value in the ItemSlot enum.
PlayerSkillup is a StatMatrix class, storing stat adjustments for a PlayerAvatar. Skillups are not assigned slots and can be added without restriction.
PlayerAvatar is aStatSheet
class, allowing it to act as a stat contribution aggregator that can answer questions like CalculateBaseDamage()
and CalculateMaxHp()
taking all effects into consideration before providing an answer.
Items can be "enchanted" by combining the enchantment StatMatrix with the Item's StatMatrix to create a new item. There's no backwards traversing currently, just a new item.
Not solved, BUT there are internal methods on a PlayerAvatar that can be exposed given the right permission.
go to MONO > Not solved, currently loads sprite Gear/[SlotNameToUpper]X
image, slotting, stat modifications