mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Baseball resets deflectmode on dropping (#27229)
* reset deflectmode on item dropped * louder message that you can't attack
This commit is contained in:
@@ -265,7 +265,7 @@
|
||||
|
||||
/obj/item/melee/baseball_bat/attack(mob/living/target, mob/living/user)
|
||||
if(deflectmode)
|
||||
to_chat(user, "<span class='warning'>You cannot attack in deflect mode!</span>")
|
||||
to_chat(user, "<span class='userdanger'>You cannot attack in deflect mode!</span>")
|
||||
return
|
||||
. = ..()
|
||||
if(homerun_ready)
|
||||
@@ -301,6 +301,10 @@
|
||||
target.throw_at(throw_target, rand(1, 2), 7, user)
|
||||
next_throw_time = world.time + 10 SECONDS
|
||||
|
||||
/obj/item/melee/baseball_bat/dropped(mob/user, silent)
|
||||
. = ..()
|
||||
deflectmode = FALSE
|
||||
|
||||
/obj/item/melee/baseball_bat/ablative
|
||||
name = "metal baseball bat"
|
||||
desc = "This bat is made of highly reflective, highly armored material."
|
||||
|
||||
Reference in New Issue
Block a user