Synthtissue fix (Thanks to Fermi! <3)

This commit is contained in:
Archie
2021-01-03 16:54:22 -03:00
parent 622a6232b0
commit 97fc5821d7
4 changed files with 15 additions and 12 deletions
@@ -101,7 +101,9 @@
if(St.purity < 1)
St.volume *= St.purity
St.purity = 1
var/amount = CLAMP(0.002, 0, N.volume)
if(!N)
return //fuck you, runtimeman
var/amount = clamp(0.002, 0, N.volume)
N.volume -= amount
St.data["grown_volume"] = St.data["grown_volume"] + added_volume
St.name = "[initial(St.name)] [round(St.data["grown_volume"], 0.1)]u colony"