mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Shield Fix (#12074)
This commit is contained in:
@@ -530,12 +530,11 @@ var/list/global/slot_flags_enumeration = list(
|
||||
attack_self(usr)
|
||||
|
||||
//RETURN VALUES
|
||||
//handle_shield should return a positive value to indicate that the attack is blocked and should be prevented.
|
||||
//If a negative value is returned, it should be treated as a special return value for bullet_act() and handled appropriately.
|
||||
//For non-projectile attacks this usually means the attack is blocked.
|
||||
//handle_shield
|
||||
//Return a negative value corresponding to the degree an attack is blocked. PROJECTILE_STOPPED stops the attack entirely, and is the default for projectile and non-projectile attacks
|
||||
//Otherwise should return 0 to indicate that the attack is not affected in any way.
|
||||
/obj/item/proc/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/item/proc/can_shield_back()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user