This commit is contained in:
Seris02
2020-08-09 15:14:25 +02:00
committed by GitHub
parent d33384e739
commit 635a42e102
@@ -79,15 +79,15 @@
if(activated(O)) if(activated(O))
to_chat(src, "<span class='warning'>That module is already activated.</span>") to_chat(src, "<span class='warning'>That module is already activated.</span>")
return return
if(!held_items[1]) if(!held_items[1] && health >= -maxHealth*0.5)
held_items[1] = O held_items[1] = O
O.screen_loc = inv1.screen_loc O.screen_loc = inv1.screen_loc
. = TRUE . = TRUE
else if(!held_items[2]) else if(!held_items[2] && health >= 0)
held_items[2] = O held_items[2] = O
O.screen_loc = inv2.screen_loc O.screen_loc = inv2.screen_loc
. = TRUE . = TRUE
else if(!held_items[3]) else if(!held_items[3] && health >= maxHealth*0.5)
held_items[3] = O held_items[3] = O
O.screen_loc = inv3.screen_loc O.screen_loc = inv3.screen_loc
. = TRUE . = TRUE