0caa59b21a
These are the files with just tiny tweaks. Mostly modify an object's attackby so it does "return ..()" instead of "..()". If there are other things in this commit, the PR's description will explain them.
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/obj/item/device/doorCharge
|
|
name = "airlock charge"
|
|
desc = null //Different examine for traitors
|
|
item_state = "electronic"
|
|
icon_state = "doorCharge"
|
|
w_class = 2
|
|
throw_range = 4
|
|
throw_speed = 1
|
|
flags = NOBLUDGEON
|
|
force = 3
|
|
attack_verb = list("blown up", "exploded", "detonated")
|
|
materials = list(MAT_METAL=50, MAT_GLASS=30)
|
|
origin_tech = "syndicate=3;combat=2"
|
|
|
|
/obj/item/device/doorCharge/ex_act(severity, target)
|
|
switch(severity)
|
|
if(1)
|
|
visible_message("<span class='warning'>[src] detonates!</span>")
|
|
explosion(src.loc,0,2,1,flame_range = 4)
|
|
qdel(src)
|
|
if(2)
|
|
if(prob(50))
|
|
ex_act(1)
|
|
if(3)
|
|
if(prob(25))
|
|
ex_act(1)
|
|
|
|
/obj/item/device/doorCharge/examine(mob/user)
|
|
..()
|
|
if(user.mind in ticker.mode.traitors) //No nuke ops because the device is excluded from nuclear
|
|
user << "A small explosive device that can be used to sabotage airlocks to cause an explosion upon opening. To apply, remove the airlock's maintenance panel and place it within."
|
|
else
|
|
user << "A small, suspicious object that feels lukewarm when held." |