CitDev-io / one-more-floor-unity

1 stars 0 forks source link

How do i create gear? #93

Open Creighcl opened 1 year ago

Creighcl commented 1 year ago

image, slotting, stat modifications

Creighcl commented 2 weeks 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.

Enchanting Items

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.

Give an Item to a PlayerAvatar

Not solved, BUT there are internal methods on a PlayerAvatar that can be exposed given the right permission.

Skinning the Item

go to MONO > Not solved, currently loads sprite Gear/[SlotNameToUpper]X