Skip to content

Commit

Permalink
Fix trapped house generation, texts tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
IGPenguin committed Oct 28, 2024
1 parent 0774ed9 commit 53167e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/story.csv
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Forsaken Village;❓;Random Trap;Generator-5;0;0;0;0;0;0;XXX;XXX;XXX
Forsaken Village;❓;Container Consumable;Generator-18;0;0;0;0;0;0;XXX;XXX;XXX

//TODO Randomize boss
Forsaken Village;🐻;Fearsome Grizzly;Boss;4;3;2;0;5;0;Huge Beast;Packs a painful punch.;Got torn to tiny pieces.
Forsaken Village;🐻;Fearsome Grizzly;Boss;4;3;2;0;5;0;Huge Beast;Packs a painful punch.<br>;Head slapped to the ground.
Forsaken Village;❓;Prop;Generator-0;0;0;0;0;0;0;XXX;XXX;XXX

//TODO Balance and finalize this area
Expand Down
8 changes: 4 additions & 4 deletions js/game_loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ function generateNextEncounters(count=1){
var chosenTrap=chooseFrom(trapsArray)

linesStory.splice(encounterIndex+1,0,getRandomEncounter("Container-3"));
linesStory.splice(encounterIndex+1,0,chosenTrap);
linesStory.splice(encounterIndex+2,0,getRandomEncounter(chooseFrom(["Swift","Heavy","Demon"])));
linesStory.splice(encounterIndex+3,0,getRandomEncounter(chooseFrom(["Item","Consumable"])));
linesStory.splice(encounterIndex+2,0,chosenTrap);
linesStory.splice(encounterIndex+3,0,getRandomEncounter(chooseFrom(["Heavy","Demon"])));
linesStory.splice(encounterIndex+4,0,getRandomEncounter(chooseFrom(["Item","Consumable"])));
break;

case 4666: //Altar House: Container >> Mid Enemy >> Loot >> Altar
Expand Down Expand Up @@ -730,7 +730,7 @@ function redraw(){
if (enemyType.includes("Locked")) enemyStatusString=decorateStatusText("🗝️","Locked",colorGrey);
if (enemyType.includes("Consumable")) {
enemyStatusString=decorateStatusText("❤️","Refreshment",colorWhite)
if (enemyHp<0) enemyStatusString=decorateStatusText("🦠","Risky",colorRed)
if (enemyHp<0) enemyStatusString=decorateStatusText("🦠","Hazardous",colorRed)
}
break;
}
Expand Down

0 comments on commit 53167e5

Please sign in to comment.