branchrust_reboot/main/apartment_complex_monumentcancel
49 Commits over 92 Days - 0.02cph!
Fixed incorrect MeshLOD setup on apartment.stove.prefab
S2P apartment complex for good measure
Add inventory popups for items collected from reclaim functionality of rentable shop
Fixed rentable shop signs not loading on non owner clients
Fixed break in menu item throwing server side entityref lookup error
Implement lockpick mechanic on rentable vending machines
Lockpick can be used on a rented vending machine not owned by the using player, allows access to the vending machine inventory for ApartmentCommands.intruderauthseconds convar (300s by default)
Move shop costs (InitialScrapFee, ProtectionFromTakeoverHours, ScrapPerHourRent) are now replicated, unchanged values
Swap EntityRefs to Syncvars, remove synced NetworkableIds
Added framework for blocking some items in rentable store inventory
Only allow one shop at a time
Fixed currency not being deposited in vending machine inventory
Fixed VM stats not working on rentable shops
Fixed not being able to buy things from rentable shops due to distance hecks
Add signage.adminscanalwaysupdatesigns replicated convar, controls the previously hardcoded behaviour of admins always being able to modify signs regardless of locks, build status, etc (made testing permisisons harder)
Fixed the sign attached to rentable shops being editable when the shop is closed
Fixed the sign attached to rentable shops being editable after using the randomise shop owner convar
Bypass dynamic pricing for rentable shops (they are player controlled but technically are NPC vending machines)
Enforce a 6 hour protection window from store takeovers
Add rentableshop.ResetTakeoverProtectionOfClosestShop convar
Fixed UIEscapeCapture not working in editor when main menu is disabled
Fixed interact distance on shop B
Fixed interactive door on shop E
Fixed some incorrect prefab ids
Initial first pass on setting up the other rentable shop variants
Expose new overrideMaxImageWidth and overrideMaxImageHeight on Signange
Needed for rentable signs, fixes a bunch of issues
Fixed some RPC limits on change name and add sell order
Fixed wrong starting fee being applied
Add ability to store a toast to play when a player reconnects, can be stored for players that aren't active on the server (See BasePlayer.RecordToastToPlayOnReconnect)
WIll send all of the toasts after the player reconnects and wakes up (10s intervals if multiple have been queued)
A player will now be notified when they reconnect if a shop they owned closed while they were offline
Add rentableshop.closenearestshop convar
Add a toast if your shop is closed
Fixed visual calculation
Increased initial scrap fee to 260
Reduced scrap per hour cost to 10
Show time remaining for rent in the vending machine storage loot panel
Fix shop interaction
Move all admin interactions to the contract sign on the side of the store
FIxed rentable shop vm admin panel pointing to old admin menu
Fixed new vm admin menu not being closable if the main menu isn't loaded (editor only issue)
Fixed interaction flow for vending admin panel in rentable stores
Support multiple inventories being added to the reclaim contents
Added support for taking over a shop if you can pay twice the fee
First pass on rentable shop ownership prompt
Lots of boilerplate for shop renting system
Expose a scrap cost per real time hour and initial fee for opening a shop
Require initial fee and 24 hours of rent to open the store
Deduct rent each hour, evict owner if can't make rent
Rent is stored in VM storage, so successful sales will extend tenancy
Added RentableShop.ProcessRentTick convar that makes all shops pay rent straight away
Adjust interaction conditions, move admin panel to ShopClosedRoot and only use it for opening the store
Supress no orders errors
Don't collapse RendererLODs if there are multiple RendererLODs on the same object
They would end up fighting over the filter/renderer
Route VM inventory to admin panel
Remove intial vending orders
Initial flow for left over items/earnings being stored (similar process to ReclaimTerminal)
Disable VM broadcast option
Route vm admin to a control panel
Can now paint the sign while interacting with the rentable shop
First pass on admin vending machine support
Adjusted texture size of shop A sign so it doesn't get rejected on the server
Fixed OwnerID of entities not being sent out to clients if the old OwnerId !=0 and the new id == 0
Fixed lock logic for signs
Rentable shop first pass setup, just setting up verison A for now
Can open and close the shop via E for now
Enabled/disables appropriate roots on the prefab to hide/show shutters, interior contents, etc (bonus side effect, we can disable all of the interior set dressing while the shop is closed)
Spawns a shopkeeper and invisible VM when opened