mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Persistent liquid tank refactor (#22973)
# Summary This PR adjust the import cost of the newly added persistent tanks, makes empty tanks retain persistent and removes the duplicate water tank entry. Import cost is adjusted based of export cost with liquid in them, preventing money printing.
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
src.y = y
|
||||
src.z = z
|
||||
if(!content["remaining_volume"] || content["remaining_volume"] <= 0)
|
||||
qdel(src)
|
||||
reagents_to_add = null
|
||||
return
|
||||
|
||||
if(!LAZYLEN(reagents_to_add))
|
||||
return
|
||||
@@ -79,9 +80,6 @@
|
||||
return
|
||||
if (usr.a_intent == I_HELP)
|
||||
RG.standard_dispenser_refill(user,src)
|
||||
if(!reagents || !reagents.total_volume)
|
||||
SSpersistence.objectsDeregisterTrack(src)
|
||||
return
|
||||
playsound(src.loc, 'sound/machines/reagent_dispense.ogg', 25, 1)
|
||||
else
|
||||
if(!accept_any_reagent)
|
||||
|
||||
Reference in New Issue
Block a user