Skip to content

Commit

Permalink
Made weed nodes destroyable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigó János committed Jun 24, 2023
1 parent 807387b commit f800ffe
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@
return

var/obj/effect/alien/weeds/node/N = locate() in T
if(N && N.weed_strength >= X.weed_level)
to_chat(X, SPAN_WARNING("There's a pod here already!"))
if(N)
if(N.weed_strength > X.weed_level)
to_chat(X, SPAN_WARNING("There's a pod here already!"))
else
to_chat(X, SPAN_WARNING("You start removing the resin node."))
if(!do_after(X, 10, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
return
playsound(X.loc, "alien_resin_break", 25)
N.Destroy()
to_chat(X, SPAN_WARNING("You removed the resin node."))
return

var/obj/effect/alien/resin/trap/resin_trap = locate() in T
Expand Down

0 comments on commit f800ffe

Please sign in to comment.