Skip to content

Commit

Permalink
Monkey #712
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed May 16, 2024
1 parent c769886 commit 78a059b
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 24 deletions.
6 changes: 3 additions & 3 deletions data/.wolf3d/N3Ddata.cdogscpn/character_classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
"Sounds": "hitler"
},
{
"Name": "Otto Giftmacher",
"Name": "Monkey",
"HeadPics": {
"Type": "Directional",
"Sprites": "chars/heads/jones"
"Sprites": "chars/heads/monkey"
},
"Body": "big_soldier",
"Sounds": "otto"
"Sounds": "monkey"
},
{
"Name": "Gretel Grosse",
Expand Down
5 changes: 2 additions & 3 deletions data/.wolf3d/N3Ddata.cdogscpn/characters.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,12 @@
"actionDelay": 40
},
{
"Class": "Otto Giftmacher",
"HatType": "peak_cap",
"Class": "Monkey",
"Skin": "ffbb63ff",
"Arms": "ecececff",
"Body": "f8f8ffff",
"Legs": "fcfcfcff",
"Hair": "ffededff",
"Hair": "6d410cff",
"Feet": "404040ff",
"Facehair": "ffededff",
"Hat": "ffededff",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions data/.wolf3d/N3Ddata.cdogscpn/map_objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@
"Flags": ["Inside", "OnWall"]
},
{
"Name": "hitler_portrait",
"Name": "monkey_portrait",
"Pic": {
"Type": "Normal",
"Pic": "hitler_portrait"
"Pic": "monkey_portrait"
},
"Offset": [-5, -10],
"Health": 0,
Expand Down
13 changes: 8 additions & 5 deletions data/.wolf3d/N3Ddata.cdogscpn/missions.json
Original file line number Diff line number Diff line change
Expand Up @@ -899,11 +899,6 @@
"MapObject": "wall_vent",
"Positions": [[9, 10]]
},
{
"MapObject": "hitler_portrait",
"Positions": [[7, 2],
[5, 4]]
},
{
"MapObject": "brick_eagle",
"Positions": [[11, 2]]
Expand Down Expand Up @@ -1138,6 +1133,14 @@
{
"MapObject": "wood_slime",
"Positions": [[3, 2]]
},
{
"MapObject": "yellow_flag",
"Positions": [[5, 2]]
},
{
"MapObject": "monkey_portrait",
"Positions": [[7, 2]]
}],
"StaticCharacters": [{
"Index": 0,
Expand Down
38 changes: 27 additions & 11 deletions src/cdogs/map_wolf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ static void TryLoadWallObject(
switch (map->type)
{
case CWMAPTYPE_N3D:
moName = "wood_slime";
moName = "yellow_flag";
break;
default:
switch (spearMission)
Expand All @@ -1215,13 +1215,21 @@ static void TryLoadWallObject(
}
break;
case CWWALL_GREY_BRICK_HITLER:
switch (spearMission)
switch (map->type)
{
case 1:
moName = "hitler_portrait";
case CWMAPTYPE_N3D:
moName = "monkey_portrait";
break;
case 3:
moName = "no_sign";
default:
switch (spearMission)
{
case 1:
moName = "hitler_portrait";
break;
case 3:
moName = "no_sign";
break;
}
break;
}
break;
Expand Down Expand Up @@ -1295,13 +1303,21 @@ static void TryLoadWallObject(
}
break;
case CWWALL_WOOD_HITLER:
switch (spearMission)
switch (map->type)
{
case 1:
moName = "hitler_portrait";
case CWMAPTYPE_N3D:
moName = "monkey_portrait";
break;
case 3:
moName = "wall_light";
default:
switch (spearMission)
{
case 1:
moName = "hitler_portrait";
break;
case 3:
moName = "wall_light";
break;
}
break;
}
break;
Expand Down

0 comments on commit 78a059b

Please sign in to comment.