mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Fixes snowballs damaging structures (#15111)
* Fixes snowballs damaging structures * Check for blocking, isliving
This commit is contained in:
@@ -125,12 +125,15 @@
|
||||
/obj/item/snowball
|
||||
name = "snowball"
|
||||
desc = "Get ready for a snowball fight!"
|
||||
throwforce = 10
|
||||
icon_state = "snowball"
|
||||
damtype = STAMINA
|
||||
/// The amount of stamina damage to do on hit.
|
||||
var/stamina_damage = 10
|
||||
|
||||
/obj/item/snowball/throw_impact(atom/target)
|
||||
..()
|
||||
. = ..()
|
||||
if(!. && isliving(target))
|
||||
var/mob/living/M = target
|
||||
M.adjustStaminaLoss(stamina_damage)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/snowball/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume, global_overlay = TRUE)
|
||||
|
||||
Reference in New Issue
Block a user