5,220 Commits over 1,492 Days - 0.15cph!
Get rid of only intruders being able to access the storage during a break-in, flag the whole room as a break-in is active for 5 minutes
- doesn't persist break-in across restarts because it only lasts 5 minutes, server takes >5m to restart, awkward to relog fast enough during break-in and there isn't a place to hook after all the slow server startup happens
- instead set break-in to false every time the server loads (since the flag is only disabled by an invoke that would be lost on server restart)
Another change for combat triggers
This isn't a clean one change per commit but change the combat zones so they are only show the flag on client and allow damage a break-in is happening
Add invisible blocker to apartments
Add support for an invisible player movement blocker in front of the door
Add console command for "fakerentroom" to allow you to rent a single room to a fake player instead of every single room
merge from satellite_loot_crate -> satellite_art
merge from PlayerMaintainedMonuments -> PlayerMaintainedMonuments/satellite_loot_crate
merge from main -> satellite_art
Lower apartment upkeep terminal from 6 slots -> 1 slot
Add "Thank you" response option after buying an apartment and they explain how it works
update apartment_complex_monument/prototype
merge from apartment_complex_monument -> main
merge from prototype -> apartment_complex_monument
Increase maximum conversation options from 4 -> 6 (even if they are filtered out)
- surely this won't break anything right
Ensure apartment sizes are translated properly
merge from apartment_complex_monument/prototype -> main
Fix compile error from random using statement being added
Add more conversation options for "you are staying in room {0}" and "how do I pay rent?"
Update conversation options for apartment vendor
Add support to interpolate "{my_room_number}" to show what room you are in
merge from apartment_complex_monument -> main
merge from prototype -> apartment_complex_monument
Make apartment elevator no longer a variant so it can be switched to the ApartmentElevatorLift class
update apartment_complex_monument/prototype
Hoist the radial menu for the apartment elevators into it's own ApartmentElevatorLift class so it can't affect other elevators in the game (safer)
Fix players not being teleported to their room after scheduled death in safezone
- check safezones manually as when you sleep you aren't part of any triggers
- fix players not falling when teleported to their room when sleeping
- add "scheduleddeath" command to test the scheduled death instead of waiting 20m
-
Add 4hrs of rent to the upkeep terminal when renting a room so that it doesn't how "Rent Due" when you first buy a room
- convar "apartmentfreerenthours"
merge from apartment_complex_monument -> main
update apartment_complex_monument/prototype
merge from main -> apartment_complex_monument
merge from main -> apartment_complex_monument
merge from prototype -> apartment_complex_monument
Update vendor conversation
Fix remaining rooms not updating when using rentallrooms
Add CanAffordApartment and CanAffordUpgrade conditions so we can get rid of hardcoded HasScrap sprinkled in conversations that are a pain to update when changing apartment prices
- change all the conditions in the conversation too
Fix remaining rooms left not being loaded on the client after network update
Update vendor conversation
Also interpolate the dialog options (so you can see how many of each room are left when selecting a room)
Switch ApartmentConversationSize -> ApartmentSize so conversations and apartment logic use the same enum
- this leaves the "Any" option of ApartmentSize only used for conversations but that seems better than the trap of needing to make sure both enums have the same values
Add "OwnsApartment" conversation condition so allow separate conversation options for upgrading from small -> penthouse and medium -> penthouse
- I think originally I was going to do this all in code but never hooked up different conditions
Update conversation with new phrases but it keeps deleting some of the failed speech nodes
Add the interpolation to the ApartmentVendor & SyncVar the ApartmentBuilding to it so it can apply prices to conversation
Add support for simple conversation interpolation
- only for apartment vendor to interpolate special values like {small_cost} (not the ability for the server to send generic values and interpolate with {0} yet)
Assign costs in apartments prefabs and lower to sane values (STILL PLACEHOLDER)
Scrap
- Basement = 100 purchase, 25 upkeep
- Standard = 200 purchase, 50 upkeep
- Penthouse = 400 purchase, 100 upkeep
Update apartment building manager to reference apartment room prefabs
Store the purchase cost inside the apartment prefab instead of in the building manager because it's confusing to configure the rent in the apartments but the purchase cost elsewhere
Fix upgrading apartments not taking scrap from the player
- automatically calculate the difference in cost based on the apartment chosen (rather than hardcoding upgrade costs)
Re-add teleporting players into their rooms instead of killing them after being offline for 20m in the safezone because it got stomped?