branchrust_reboot/main/item_ownershipcancel

8 Commits over 31 Days - 0.01cph!

7 Days Ago
Add converts to add, remove and transfer ownership on an item Add convar `stackable_item_ownership` to enable ownership on stackable items (that were configured in ItemDefinition) - default disabled (only enable for testing) Fix item not being marked as dirty when item ownership is transferred off of it
7 Days Ago
Add colors in inventory prefab
7 Days Ago
If there are multiple owners on a single item, show a different color for each owner (rotating through 7 different colors)
8 Days Ago
Enable stackable ownership on rockets since they are a low stack size item (max 3 owners) and an item you likely want to know who made it
8 Days Ago
Change GameUI.Inventory prefab with support for stackable ownership
8 Days Ago
Significantly refactor so the code can support ownership on stackable items, however only enable only on single stack items by default - can be applied to individual stackable items through `ItemDefinition.supportsStackableOwnership` - transfers ownership between item stacks when merging stacks instead of averaging it - ownership is stored in whole number shares based on the amount of the item rather than percentage per stack - ownership will try to merge with existing ownership names + reasons before creating new ones - ownership panels above item description can show multiple panels if there are multiple owners
8 Days Ago
merge from main -> item_ownership
13 Days Ago
Simplified version of original item ownership system - only applies to single stack items (no mixed ownership) - ownership can't change: will always show the name of the user who first created it / looted it - shows owner's display name above the item (like it used to) - hovering over the owner's name will show a tooltip of how it was created, like "Crafted by Jake" Show different forms of item aquisition - crafted - looted - born (respawn with rock + torch) - spawned (F1 spawn menu) - mission reward