mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 09:31:54 +00:00
All unique traitor steal objective item are now immune to all damage except severity=1 explosion. Mobs on fire no longer get damage to their worn backpacks, belts, id, pocket stuff, and suit storage. All backpacks are now nonflammable, and bag oh holding and engineer backpack are now fireproof. Mob receiving melee attacks now only have its outer layer of clothes damaged, e.g. no damage to jumpsuit when wearing a suit. Made all hyposprays (not just the CMO's) acid proof. Made the singularity gen and tesla gen immune to fire.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
/////SINGULARITY SPAWNER
|
|
/obj/machinery/the_singularitygen/
|
|
name = "Gravitational Singularity Generator"
|
|
desc = "An Odd Device which produces a Gravitational Singularity when set up."
|
|
icon = 'icons/obj/singularity.dmi'
|
|
icon_state = "TheSingGen"
|
|
anchored = 0
|
|
density = 1
|
|
use_power = 0
|
|
resistance_flags = FIRE_PROOF
|
|
var/energy = 0
|
|
var/creation_type = /obj/singularity
|
|
|
|
/obj/machinery/the_singularitygen/process()
|
|
var/turf/T = get_turf(src)
|
|
if(src.energy >= 200)
|
|
feedback_add_details("engine_started","[src.type]")
|
|
var/obj/singularity/S = new creation_type(T, 50)
|
|
transfer_fingerprints_to(S)
|
|
qdel(src)
|
|
|
|
/obj/machinery/the_singularitygen/attackby(obj/item/W, mob/user, params)
|
|
if(istype(W, /obj/item/weapon/wrench))
|
|
|
|
if(!anchored && !isinspace())
|
|
user.visible_message("[user.name] secures [src.name] to the floor.", \
|
|
"<span class='notice'>You secure the [src.name] to the floor.</span>", \
|
|
"<span class='italics'>You hear a ratchet.</span>")
|
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
|
|
anchored = 1
|
|
else if(anchored)
|
|
user.visible_message("[user.name] unsecures [src.name] from the floor.", \
|
|
"<span class='notice'>You unsecure the [src.name] from the floor.</span>", \
|
|
"<span class='italics'>You hear a ratchet.</span>")
|
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
|
|
anchored = 0
|
|
else
|
|
return ..()
|