Skip to content

Commit

Permalink
VITAL: Switched to .normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
tewlwolow committed May 29, 2023
1 parent 5bfcd5c commit c50e368
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions 00 Core/MWSE/mods/tew/AURA/PC/vitalSigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ local function playVitals()

if PChealth then

local maxHealth = player.health.base
local currentHealth = player.health.current
local health = player.health.normalized

if currentHealth < maxHealth / 3 then
if health < 0.33 then
playHealth()
else
if healthTimer then
Expand All @@ -161,10 +160,9 @@ local function playVitals()
return
end

local maxFatigue = player.fatigue.base
local currentFatigue = player.fatigue.current
local fatigue = player.fatigue.normalized

if currentFatigue < maxFatigue / 3 then
if fatigue < 0.33 then
playFatigue()
else
if fatigueTimer then
Expand All @@ -176,10 +174,9 @@ local function playVitals()

if PCmagicka then

local maxMagicka = player.magicka.base
local currentMagicka = player.magicka.current
local magicka = player.magicka.normalized

if currentMagicka < maxMagicka / 3 then
if magicka < 0.33 then
playMagicka()
else
if magickaTimer then
Expand Down

0 comments on commit c50e368

Please sign in to comment.
  翻译: