More interactions for small mobs (#6764)

Small mobs such as rats can now bite cables.
Small mobs that can ventcrawl now interact with atmospheric machines that contain pumps
Small mobs can no longer block airlocks by standing in them.
This commit is contained in:
Werner
2019-07-24 19:52:06 +02:00
committed by Erki
parent 65b3a6b632
commit e3e13ec14a
5 changed files with 133 additions and 2 deletions

View File

@@ -202,6 +202,15 @@ var/list/possible_cable_coil_colours = list(
return 1
return 0
/obj/structure/cable/attack_generic(var/mob/user)
//Let those rats (and other small things) nibble the cables
if (issmall(user) && !isDrone(user))
to_chat(user, span("danger","You bite into \the [src]."))
if(powernet && powernet.avail > 100) //100W should be sufficient to grill a rat
spark(src)
user.dust()
..()
/obj/structure/cable/shuttle_move(turf/loc)
..()
SSmachinery.powernet_update_queued = TRUE