mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 21:27:01 +01:00
[MIRROR] EMP & Wires refactor (#12658)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Guti
Cameron Lennox
parent
494fc9bea9
commit
b116cc450d
@@ -9,7 +9,6 @@
|
||||
var/smoke_strength = 3
|
||||
var/obj/item/mine/mineitemtype = /obj/item/mine
|
||||
var/panel_open = FALSE
|
||||
var/datum/wires/mines/wires = null
|
||||
var/camo_net = FALSE // Will the mine 'cloak' on deployment?
|
||||
|
||||
// The trap item will be triggered in some manner when detonating. Default only checks for grenades.
|
||||
@@ -17,7 +16,7 @@
|
||||
|
||||
/obj/effect/mine/Initialize(mapload)
|
||||
icon_state = "landmine_armed"
|
||||
wires = new(src)
|
||||
set_wires(new /datum/wires/mines(src))
|
||||
. = ..()
|
||||
if(ispath(trap))
|
||||
trap = new trap(src)
|
||||
|
||||
@@ -148,3 +148,13 @@
|
||||
|
||||
/obj/effect/temp_visual/circle_wave/dirt
|
||||
color = COLOR_ASTEROID_ROCK
|
||||
|
||||
/obj/effect/temp_visual/emp
|
||||
name = "emp sparks"
|
||||
icon_state = "empdisable"
|
||||
|
||||
/obj/effect/temp_visual/emp/pulse
|
||||
name = "emp pulse"
|
||||
icon_state = "emppulse"
|
||||
duration = 8
|
||||
randomdir = 0
|
||||
|
||||
Reference in New Issue
Block a user