Allows mech drills to drill through blobs (#12119)

This commit is contained in:
JustSumBody
2016-10-15 20:15:47 -04:00
committed by clusterfack
parent d2029cce5c
commit aa5e0b12db
4 changed files with 16 additions and 3 deletions

View File

@@ -450,6 +450,9 @@ its easier to just keep the beam vertical.
/atom/proc/mech_drill_act(var/severity, var/child=null)
return ex_act(severity, child)
/atom/proc/can_mech_drill()
return acidable()
/atom/proc/blob_act(destroy = 0)
//DEBUG to_chat(pick(player_list),"blob_act() on [src] ([src.type])")
if(flags & INVULNERABLE)

View File

@@ -175,6 +175,9 @@ var/list/blob_looks
update_health()
update_icon()
/obj/effect/blob/can_mech_drill()
return TRUE
/obj/effect/blob/process()
handle_beams()
Life()

View File

@@ -131,7 +131,7 @@
if(!action_checks(target))
return
if(isobj(target))
if(!target.acidable())
if(!target.can_mech_drill())
return
set_ready_state(0)
chassis.visible_message("<font color='red'><b>[chassis] starts to drill [target]!</b></font>", "You hear a drill.")

View File

@@ -0,0 +1,7 @@
author: JustSumGuy
delete-after: True
changes:
- rscadd: "Mech drills can now drill through blobs."