Skip to content
Snippets Groups Projects
Commit ffe071fb authored by svornost's avatar svornost
Browse files

PC PA health check fixes

parent 9dc1c03a
No related branches found
No related tags found
1 merge request!7296PC PA health check fixes
...@@ -169,7 +169,7 @@ App.EndWeek.slaveAssignmentReport = function() { ...@@ -169,7 +169,7 @@ App.EndWeek.slaveAssignmentReport = function() {
if (V.HeadGirlID !== 0) { if (V.HeadGirlID !== 0) {
V.HGEnergy++; V.HGEnergy++;
const slave = slaveStateById(V.HeadGirlID); const slave = slaveStateById(V.HeadGirlID);
if (V.personalAttention === PersonalAttention.SUPPORTHG) { if (V.personalAttention === PersonalAttention.SUPPORTHG && V.PC.health.shortDamage < 30) {
V.HGEnergy++; V.HGEnergy++;
if (slave.trust > 95) { if (slave.trust > 95) {
V.HGEnergy++; V.HGEnergy++;
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<br> <br>
<</if>> <</if>>
<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>> <<if $PC.health.shortDamage < 30 && Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
<<set $activeSlave = $slaves[$i]>> <<set $activeSlave = $slaves[$i]>>
<<include "PT Workaround">> <<include "PT Workaround">>
<br> <br>
......
...@@ -29,16 +29,14 @@ ...@@ -29,16 +29,14 @@
<</if>> <</if>>
<</if>> <</if>>
<<if $PC.health.shortDamage >= 30>> <<if $PC.health.shortDamage >= 30>>
<<if $PC.health.shortDamage >= 30>> <<run endWeekHealthDamage($PC)>>
<<run endWeekHealthDamage($PC)>> The injuries received in the recent battle prevents you from engaging in tiring endeavors.
The injuries received in the recent battle prevents you from engaging in tiring endeavors. <<if $PC.health.shortDamage >= 51>>
<<if $PC.health.shortDamage >= 51>> Your trusted physician believes it will still take a few weeks to fully recover.
Your trusted physician believes it will still take a few weeks to fully recover. <<elseif $PC.health.shortDamage >= 39>>
<<elseif $PC.health.shortDamage >= 39>> You are starting to feel better. It's very likely you will be back to full working order within the next week.
You are starting to feel better. It's very likely you will be back to full working order within the next week. <<else>>
<<else>> You have finally recovered from your injuries.
You have finally recovered from your injuries.
<</if>>
<</if>> <</if>>
<<elseif ($personalAttention == "whoring")>> <<elseif ($personalAttention == "whoring")>>
<<set _income = random(2000,4500)>> <<set _income = random(2000,4500)>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment