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:
FabianK3
2026-08-03 01:23:18 +00:00
committed by GitHub
parent 28328a717f
commit cb9b4c7431
4 changed files with 26 additions and 34 deletions
+2 -4
View File
@@ -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)