Skip to content

Commit

Permalink
fix: fix: bat logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullonibus committed Nov 13, 2023
1 parent 4eca1ef commit 64e347c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions modular_ss220/objects/code/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@
/// Attack verbs when extended (created on Initialize)
var/list/attack_verb_on = list("smacked", "struck", "cracked", "beaten")

/obj/item/melee/baseball_bat/homerun/central_command/Initialize(mapload)
. = ..()
/// Ability to make homerun
homerun_able = on

/obj/item/melee/baseball_bat/homerun/central_command/pickup(mob/living/user)
. = ..()
if(!(user.mind.offstation_role))
Expand All @@ -215,18 +210,16 @@
to_chat(user, span_userdanger("Вы активировали [src.name] - время для правосудия!"))
item_state = item_state_on
icon_state = icon_state_on
w_class = WEIGHT_CLASS_HUGE //doesnt fit in backpack when its on for balance
w_class = WEIGHT_CLASS_HUGE
force = force_on
attack_verb = attack_verb_on
homerun_ready = TRUE
else
to_chat(user, span_notice("Вы деактивировали [src.name]."))
item_state = initial(item_state)
icon_state = initial(icon_state)
w_class = initial(w_class)
force = initial(force)
attack_verb = initial(attack_verb)
homerun_ready = FALSE

homerun_able = on
// Update mob hand visuals
Expand All @@ -238,6 +231,6 @@
add_fingerprint(user)

/obj/item/melee/baseball_bat/homerun/central_command/attack(mob/living/target, mob/living/user)
. = ..()
if(on)
homerun_ready = 1
. = ..()

0 comments on commit 64e347c

Please sign in to comment.