Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i create gear? #93

Open
Creighcl opened this issue Aug 10, 2023 · 1 comment
Open

How do i create gear? #93

Creighcl opened this issue Aug 10, 2023 · 1 comment

Comments

@Creighcl
Copy link
Member

image, slotting, stat modifications

@Creighcl
Copy link
Member Author

Creighcl commented Sep 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant