branchrust_reboot/main/item_ownershipcancel
76 Commits over 31 Days - 0.10cph!
Fix give command not setting item ownership
Set item ownership from the player deploying it when placing stackable items
- fixes industrial crafters not having an owner to assign items to
Fix item ownership throwing an error if the username is null
merge from crafting_update -> item_ownership
Update ownership phrase of corpses
Update metal detector phrase
merge from main -> item_ownership
Add convar to control if item ownership is shown on client
- `show_item_ownership`
Add support for streamer mode
- show `STREAMER MODE` instead of the username for all item ownership on client
Disable stackable item support on rockets
- the convar was already disabled but lets not forget this
Changed `Purchased From Vendor by {0}` -> `Purchased by {0}`
Actually change ownership to the newer protobuf ID since it's the newer one
Fix conflicting protobuf entity field ids
Fix ItemModSwap after merge
merge from crafting_update -> item_ownership
merge from main -> item_ownership
Add item ownership to items horses poop
- uses breed's name as the username
- doesn't actually do anything because poop is stackable, planning for future if they poop different unstackable items
Transfer item ownership when explosives are picked up
- this doesn't apply yet because C4 & satchels are stackable but laying the code down ahead of time
Add ownership to ItemModRecycler (no prefabs use this but better to be safe)
Set item ownership to keycards that are picked up
Add item ownership when animal head is beheaded with a skinning knife
Set item ownership for resources that use RandomItemDispenser instead of ResourceDispenser
Add item ownership when collectible is picked off the ground
Add item ownership for items produced when car is shredded
Add item ownership to plants harvested
Fix item ownership not applying to finishing bonus
Set item ownership of photographs taken by the camera
Set item ownership of cassette tape to the player who made the recording
Add ownership for gifts that are wrapped
Add item ownership when an item is upgraded into another item
- christmas presents
- easter eggs
- super stocking
- halloween candy
Set item ownership when item is researched inside research table
Add item ownership for items produced by recycling other items
- uses the last player who opened the recycler
Refactor WildlifeTrap to use the existing `LastLootedByPlayer` field instead of storing new reference
Add `StorageContainer.LastLootedByPlayer` alongside the ulong `LastLootedBy` field
Set item ownership of items caught inside a fish trap
Add item ownership when fishing items with a fishing rod
Merge from main -> item_ownership
Added ownership to items made by the industrial crafter
- use the player that placed the industrial crafter
- phrase "Industrial Crafted by {0}"
Add item ownership for items made in mixing table
Add "Harvested From Animal by {0}" phrase to animal corpses
Add ownership when gathering items from animal corpses
- implemented through custom ownership phrase for certain ResourceDispensers
- fallback generic "Gathered by PLAYER" phrase
Add item ownership when item is dug up with metal detector
Add ownership to item when it's purchased from an NPC vending machine
Fix item ownership not being transferred when an item is reskinned to a redirect in the repair bench