[MIRROR] Replaces GetComponent in Mining items with Signalers [MDB IGNORE] (#15221)

* Replaces GetComponent in Mining items with Signalers (#68575)

* Replaces many instances of GetComponents in mining items with signals and better uses overall of Components, in drills and the GPS handcuffs.
* To do this, also added 3 new signals to mechs when you are adding/removing mech equipment onto one.

* Replaces GetComponent in Mining items with Signalers

Co-authored-by: Salex08 <33989683+Salex08@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-07-28 11:45:29 -07:00
committed by GitHub
co-authored by Salex08
parent 4c95ef5fe6
commit 83665417d2
31 changed files with 306 additions and 100 deletions
@@ -115,7 +115,12 @@
/obj/item/gun/energy/plasmacutter/ComponentInitialize()
. = ..()
AddComponent(/datum/component/butchering, 25, 105, 0, 'sound/weapons/plasma_cutter.ogg')
AddComponent(/datum/component/butchering, \
speed = 2.5 SECONDS, \
effectiveness = 105, \
bonus_modifier = 0, \
butcher_sound = 'sound/weapons/plasma_cutter.ogg', \
)
AddElement(/datum/element/update_icon_blocker)
AddElement(/datum/element/tool_flash, 1)
+6 -1
View File
@@ -178,7 +178,12 @@
/obj/item/gun/magic/staff/spellblade/Initialize(mapload)
. = ..()
AddComponent(/datum/component/butchering, 15, 125, 0, hitsound)
AddComponent(/datum/component/butchering, \
speed = 1.5 SECONDS, \
effectiveness = 125, \
bonus_modifier = 0, \
butcher_sound = hitsound, \
)
/obj/item/gun/magic/staff/spellblade/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
if(attack_type == PROJECTILE_ATTACK)