mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user