Properly fixes resin exploit

Fixes #13667

Closes #13669
This commit is contained in:
Kyle Spier-Swenson
2015-12-15 22:29:29 -08:00
parent 1d62039139
commit c69aab191c
@@ -241,8 +241,10 @@ Doesn't work on other aliens/AI.*/
user << "<span class='danger'>There is already a resin structure there.</span>"
return 0
var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in structures
if(!choice) return 0
if(!choice)
return 0
if (!cost_check(check_turf,user))
return 0
user << "<span class='notice'>You shape a [choice].</span>"
user.visible_message("<span class='notice'>[user] vomits up a thick purple substance and begins to shape it.</span>")
@@ -331,4 +333,4 @@ Doesn't work on other aliens/AI.*/
/proc/cmp_abilities_cost(obj/effect/proc_holder/alien/a, obj/effect/proc_holder/alien/b)
return b.plasma_cost - a.plasma_cost
return b.plasma_cost - a.plasma_cost