Skip to content

Commit

Permalink
Fix level skips #712
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jun 1, 2024
1 parent 41b9f47 commit 00d1e9c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/.wolf3d/N3D.cdogscpn/campaign.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Version": 16,
"Title": "Super 3-D Noah's Ark",
"Title": "Super 2D Noah's Ark",
"Author": "Wisdom Tree",
"Description": "",
"Ammo": true,
Expand Down
2 changes: 1 addition & 1 deletion data/.wolf3d/N3Ddata.cdogscpn/campaign.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Version": 16,
"Title": "Super 3-D Noah's Ark",
"Title": "Super 2D Noah's Ark",
"Author": "Wisdom Tree",
"Description": "",
"Ammo": true,
Expand Down
42 changes: 42 additions & 0 deletions data/.wolf3d/N3Ddata.cdogscpn/characters.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,48 @@
"probabilityToShoot": 42,
"actionDelay": 40
},
{
"Class": "Ogre",
"Skin": "00ff00ff",
"Arms": "404040ff",
"Body": "404040ff",
"Legs": "404040ff",
"Hair": "000000ff",
"Feet": "404040ff",
"Facehair": "404040ff",
"Hat": "404040ff",
"Glasses": "404040ff",
"speed": 256,
"Gun": "Machine gun",
"maxHealth": 40,
"excessHealth": 80,
"flags": 1024,
"probabilityToMove": 50,
"probabilityToTrack": 25,
"probabilityToShoot": 2,
"actionDelay": 15
},
{
"Class": "Ogre",
"Skin": "00ff00ff",
"Arms": "404040ff",
"Body": "404040ff",
"Legs": "404040ff",
"Hair": "000000ff",
"Feet": "404040ff",
"Facehair": "404040ff",
"Hat": "404040ff",
"Glasses": "404040ff",
"speed": 256,
"Gun": "Machine gun",
"maxHealth": 40,
"excessHealth": 80,
"flags": 1024,
"probabilityToMove": 50,
"probabilityToTrack": 25,
"probabilityToShoot": 2,
"actionDelay": 15
},
{
"Class": "Lady",
"PlayerTemplateName": "Naamah",
Expand Down
Binary file modified data/.wolf3d/N3Ddata.cdogscpn/graphics/pillar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/cdogs/map_wolf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,11 +1448,18 @@ static void TryLoadWallObject(
e.Hidden = true;
e.Mission = missionIndex + 1;
// Check if coming back from secret level
// For boss levels, skip the secret level
switch (missionIndex)
{
case 10:
e.Mission++;
break;
case 11:
e.Mission = 8;
break;
case 28:
e.Mission++;
break;
case 29:
e.Mission = 26;
break;
Expand Down Expand Up @@ -1530,6 +1537,7 @@ static void TryLoadWallObject(
}
break;
}
break;
case CWWALL_RED_BRICK_FLAG:
switch (map->type)
{
Expand Down Expand Up @@ -1686,6 +1694,7 @@ static void TryLoadWallObject(
}
break;
}
break;
case CWWALL_PURPLE_BLOOD:
switch (map->type)
{
Expand Down Expand Up @@ -2145,6 +2154,7 @@ typedef enum
CHAR_PACMAN_GHOST_YELLOW,
CHAR_PACMAN_GHOST_ROSE,
CHAR_PACMAN_GHOST_BLUE,
// 10
CHAR_HANS,
CHAR_SCHABBS,
CHAR_FAKE_HITLER,
Expand All @@ -2155,6 +2165,7 @@ typedef enum
CHAR_FETTGESICHT,
CHAR_TRANS,
CHAR_WILHELM,
// 20
CHAR_UBERMUTANT,
CHAR_DEATH_KNIGHT,
CHAR_GHOST,
Expand Down

0 comments on commit 00d1e9c

Please sign in to comment.