Skip to content

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadZeratul committed Nov 22, 2024
1 parent f43f080 commit 726d933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zscript/uas/alcohol/IntoxDrugs.zs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ class UaSAlcohol_IntoxDrug : HDDrug {
// Adjust Player Strength
if (uas_alcohol_intox_effects & (1 << 10)) {
// The more drunk, the less fatigued you need to be to stumble
if (hdp.fatigue >= (20 - (effectRatio * 10.0 * -(intoxTracker.intoxQuality - 1.0)))) {
if (hdp.fatigue >= (20 - (effectRatio * 10.0 * -(intoxTracker.intox_quality - 1.0)))) {

// Temporary drop in strength
hdp.strength -= random(1, 2);
} else {

// You're gonna be stronger the drunker you are.
let strBonus = min(0.15, effectRatio * (intoxTracker.intoxQuality + 1.0));
let strBonus = min(0.15, effectRatio * (intoxTracker.intox_quality + 1.0));
if (hdp.strength < hdp.basestrength() + strBonus) {
hdp.strength += strBonus;
}
Expand Down

0 comments on commit 726d933

Please sign in to comment.