mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
[MIRROR] Changes to Regal Rats (#3253)
* Changes to Regal Rats (#56145) Co-authored-by: Qustinnus <Floydje123@ hotmail.com> Co-authored-by: Paul, Sendroiu <AA2792@ student.jamk.fi> * Changes to Regal Rats Co-authored-by: eeSPee <robotdevilinside@gmail.com> Co-authored-by: Qustinnus <Floydje123@ hotmail.com> Co-authored-by: Paul, Sendroiu <AA2792@ student.jamk.fi>
This commit is contained in:
co-authored by
Qustinnus
Paul, Sendroiu <AA2792@ student.jamk.fi>
eeSPee
Paul, Sendroiu <AA2792@ student.jamk.fi>
parent
05519d4604
commit
dc76c98db2
@@ -46,7 +46,15 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri
|
||||
GLOB.cable_list += src //add it to the global cable list
|
||||
Connect_cable()
|
||||
AddElement(/datum/element/undertile, TRAIT_T_RAY_VISIBLE)
|
||||
RegisterSignal(src, COMSIG_RAT_INTERACT, .proc/on_rat_eat)
|
||||
|
||||
/obj/structure/cable/proc/on_rat_eat(mob/living/simple_animal/hostile/regalrat/king)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(avail())
|
||||
king.apply_damage(10)
|
||||
playsound(king, 'sound/effects/sparks2.ogg', 100, TRUE)
|
||||
deconstruct()
|
||||
|
||||
///Set the linked indicator bitflags
|
||||
/obj/structure/cable/proc/Connect_cable(clear_before_updating = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user