Skip to content

Commit

Permalink
make pandemonium easier to rush
Browse files Browse the repository at this point in the history
  • Loading branch information
yo252yo committed Jul 19, 2022
1 parent fe6db77 commit 165b4c3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions levels/051_pandemonium_room.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,10 @@ if(s.length > 1){
var gen = new Generator(DICTIONARY.get("world_seed")*37 + floor + room);
AUDIO.music.levels.pandemonium();

var isGooRoom = false;
if (gen.get() < 0.25){
isGooRoom = true;
}

// ===================
//hack B. FLOORS
// ===================
if (isGooRoom){
new S_GooFloor(1175,1525,350,275);
} else {
new S_CastleFloor(1175,1525,350,275);
}

// ===================
//hack C. EXIT
// ===================
var exit;
if(room < 2){
exit = new S_ExitFloor(1500,1400,50,50, '051_pandemonium@' + floor);
} else {
exit = new S_ExitFloor(1150,1400,50,50, '051_pandemonium@' + floor);
}
var keyfloor = new S_GooFloor(1175,1525,350,275);


// ===================
Expand All @@ -49,6 +30,7 @@ if(room >= 2){
x += 200;
}

var key = true;
if(floor == 0 && room == 0) {
new SE_groundItem(x, y, ITEM.MaouKey0);
} else if(floor == 1 && room == 2) {
Expand All @@ -61,15 +43,31 @@ if(floor == 0 && room == 0) {
new SE_groundItem(x, y, ITEM.MaouKey4);
} else if(floor == 5 && room == 2) {
new SE_groundItem(x, y, ITEM.MaouKey5);
} else {
key = false;
keyfloor.destroy();
new S_CastleFloor(1175,1525,350,275);
}


// ===================
//hack C. EXIT
// ===================
var exit;
if(room < 2){
exit = new S_ExitFloor(1500,1400,50,50, '051_pandemonium@' + floor);
} else {
exit = new S_ExitFloor(1150,1400,50,50, '051_pandemonium@' + floor);
}


// ===================
//hack E. DECOR
// ===================

var decorFiller = new Filler(gen.get(), 50, 50);
decorFiller.set_zone(1200,1525,300,275);
if (isGooRoom){
if (key){
decorFiller.add_default_constructor("S_HellEgg",7);
decorFiller.add_default_constructor("S_HellPlantLeaning");
decorFiller.add_default_constructor("S_HellPlantSretching");
Expand Down Expand Up @@ -153,8 +151,10 @@ events.text(`You know that each step brings you closer to the final fight, and y
events.add_conversations(0.2, true);

events.set_tries(3, 7);
events.fill_floor_by_retry();

if(!key) {
events.fill_floor_by_retry();
}

// ===================
//hack G. START/INIT
Expand Down

0 comments on commit 165b4c3

Please sign in to comment.