Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit b5b9912

Browse files
committed
fix psi armour
1 parent c36d08d commit b5b9912

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

code/modules/mob/living/living.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@
11281128

11291129
var/blocked = getarmor(null, RAD)
11301130
if(psi)
1131-
blocked = min(armor + psi.get_armour(RAD), 100)
1131+
blocked = min(blocked + psi.get_armour(RAD), 100)
11321132

11331133
if(amount > RAD_BURN_THRESHOLD)
11341134
apply_damage((amount-RAD_BURN_THRESHOLD)/RAD_BURN_THRESHOLD, BURN, null, blocked)

code/modules/psionics/complexus/complexus_helpers.dm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@
1818
if(!use_psi_armour || !can_use_passive())
1919
return 0
2020

21+
var/rating_amount = clamp( 4*rating, 0, 20) //get armour based on how strong of a psionic you are
22+
var/rank_multiplier = get_rank(SSpsi.armour_faculty_by_type[armourtype])
23+
var/stamina_multiplier = stamina/max_stamina
24+
25+
var/final_amount = round(clamp(rating * rank_multiplier, 0, 100) * stamina_multiplier)
26+
2127
/**
2228
* rating multiplied by the rank of that specific faculty, multiplied by stamina percentage
2329
*/
24-
return round(clamp(clamp(4 * rating, 0, 20) * get_rank(SSpsi.armour_faculty_by_type[armourtype]), 0, 100) * (stamina/max_stamina))
30+
return final_amount
2531

2632
/datum/psi_complexus/proc/handle_block_chance(obj/projectile/projectile)
2733
if(!use_psi_armour || !can_use_passive())

0 commit comments

Comments
 (0)