5,208 Commits over 1,492 Days - 0.15cph!
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?
Change breakinseconds from 10s -> 30s
- fix convar being a ServerVar instead of a ReplicatedVar
- fix MenuOption not reading the replicated convar
update apartment_complex_monument/prototype
merge from prototype -> apartment_complex_monument
Fix the second safezone check inside Hurt() blocking damage when inside apartment room
- the check that prevents players inside a safezone damaging players outside a safezone
- this should be handled inside the first safezone damage check
Make the safezone checks in OnAttacked() only run on the server in CLIENT + SERVER mode (as it's confusing when it runs on client entity but coincidentally does nothing)
Fix players being marked as hostile the second they leave their apartment room because the timer for holding their weapon was counting up inside the room
Fix TriggerSafeZoneOverride not being partial
Add `clearhostile` command to reset your hostile timer
- refactor `MarkHostileFor()` by adding `SetHostileDuration()` so I can clear hostile time instead of only adding onto hostile time
Allow players to hold their weapon inside their apartment room
Fix vitals showing both safezone & combatzone after changing CombatZone to a flag
Don't show "you must put away your weapon" when inside your room
Make it impossible to be marked hostile when inside your apartment room (combat, shooting, whatever)