mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Ports the radiation subsystem and cleans up damage flags. (#15715)
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
var/armorpercent = 0
|
||||
var/wasblocked = 0
|
||||
var/shoulddisarm = 0
|
||||
var/damagetype = PAIN
|
||||
var/damagetype = DAMAGE_PAIN
|
||||
var/chargedelay = 4 // 4 half frames = 2 seconds
|
||||
|
||||
if(targetIsHuman && targetashuman == user)
|
||||
@@ -81,11 +81,11 @@
|
||||
|
||||
if (user.a_intent == I_HURT)
|
||||
target_zone = get_zone_with_miss_chance(target_zone, target) //Vary the attack
|
||||
damagetype = BRUTE
|
||||
damagetype = DAMAGE_BRUTE
|
||||
|
||||
if (targetIsHuman)
|
||||
var/mob/living/carbon/human/targethuman = target
|
||||
armorpercent = targethuman.get_blocked_ratio(target_zone, BRUTE, damage = force)*100
|
||||
armorpercent = targethuman.get_blocked_ratio(target_zone, DAMAGE_BRUTE, damage = force)*100
|
||||
wasblocked = targethuman.check_shields(force, src, user, target_zone, null)
|
||||
|
||||
var/damageamount = force
|
||||
|
||||
Reference in New Issue
Block a user