Skip to content

Commit

Permalink
fix: some code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullonibus committed Nov 10, 2023
1 parent 08604e8 commit bd0b510
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modular_ss220/objects/code/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@
/obj/item/melee/baseball_bat/homerun/central_command/pickup(mob/living/user)
. = ..()
if(!(user.mind.offstation_role))
user.Weaken(5)
user.Weaken(10 SECONDS)
user.unEquip(src, force, silent = FALSE)
to_chat(user, "<span class='cultlarge'>\"Это - оружие истинного правосудия. Тебе не дано обуздать его мощь.\"</span>")
to_chat(user, span_userdanger("Это - оружие истинного правосудия. Тебе не дано обуздать его мощь."))
if(ishuman(user))
var/mob/living/carbon/human/H = user
H.apply_damage(rand(force/2, force), BRUTE, pick("l_arm", "r_arm"))
Expand All @@ -216,17 +216,17 @@
on = !on
icon_state = on ? icon_state_on : initial(icon_state)
if(on)
to_chat(user, "<span class='userdanger'>Вы активировали [src.name] - время для правосудия!</span>")
to_chat(user, span_userdanger("Вы активировали [src.name] - время для правосудия!</span>"))
item_state = item_state_on
w_class = WEIGHT_CLASS_HUGE //doesnt fit in backpack when its on for balance
force = force_on
attack_verb = attack_verb_on
homerun_ready = TRUE
else
to_chat(user, "<span class='notice'>Вы деактивировали [src.name].</span>")
to_chat(user, span_notice("Вы деактивировали [src.name]."))
item_state = initial(item_state)
slot_flags = SLOT_FLAG_BELT
w_class = WEIGHT_CLASS_SMALL
slot_flags = initial(slot_flags)
w_class = initial(w_class)
force = initial(force)
attack_verb = initial(attack_verb)
homerun_ready = FALSE
Expand Down

0 comments on commit bd0b510

Please sign in to comment.