mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] makes rust visible again [MDB IGNORE] (#10510)
* makes rust visible (#63789) * makes rust visible again Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
if(!isatom(target))
|
||||
return COMPONENT_INCOMPATIBLE
|
||||
if(!rust_overlay)
|
||||
rust_overlay = image(rust_icon, rust_icon)
|
||||
rust_overlay = image(rust_icon, rust_icon_state)
|
||||
ADD_TRAIT(target, TRAIT_RUSTY, ELEMENT_TRAIT(type))
|
||||
RegisterSignal(target, COMSIG_ATOM_UPDATE_OVERLAYS, .proc/apply_rust_overlay)
|
||||
RegisterSignal(target, COMSIG_PARENT_EXAMINE, .proc/handle_examine)
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/datum/element/rust/proc/apply_rust_overlay(atom/parent_atom, list/overlays)
|
||||
SIGNAL_HANDLER
|
||||
overlays |= rust_overlay
|
||||
overlays += rust_overlay
|
||||
|
||||
/// Because do_after sleeps we register the signal here and defer via an async call
|
||||
/datum/element/rust/proc/secondary_tool_act(atom/source, mob/user, obj/item/item)
|
||||
|
||||
Reference in New Issue
Block a user