Skip to content

Commit

Permalink
Merge pull request #6 from artyomtrityak/modify-race-name-v2
Browse files Browse the repository at this point in the history
Revert data
  • Loading branch information
artyomtrityak authored Jul 19, 2019
2 parents 9485249 + c311ec4 commit 7f9796c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 84 deletions.
36 changes: 0 additions & 36 deletions gamedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ ItemType id[] =
-1, 0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"human", "humans", "HUMN",
ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0}, {-1,0},{-1,0},{-1,0}},
NULL,0,0, {{-1,0},{-1,0},{-1,0},{-1,0}},
10, IT_MAN, 50, 1,
15,0,0,0,2,
-1,0,
-1,0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"viking", "vikings", "VIKI",
ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0}, {-1,0},{-1,0},{-1,0}},
Expand Down Expand Up @@ -176,16 +166,6 @@ ItemType id[] =
-1,0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"mountain dwarf","mountain dwarves","MDWA",
ItemType::DISABLED | ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0}, {-1,0},{-1,0},{-1,0}},
NULL,0,0, {{-1,0},{-1,0},{-1,0},{-1,0}},
10, IT_MAN, 50,1,
15,0,0,0,2,
-1,0,
-1,0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"ice dwarf","ice dwarves","IDWA",
ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0}, {-1,0},{-1,0},{-1,0}},
Expand Down Expand Up @@ -246,16 +226,6 @@ ItemType id[] =
-1,0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"deep gnome","deep gnomes","DGNO",
ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0},{-1,0},{-1,0},{-1,0}},
NULL,0,0, {{-1,0},{-1,0},{-1,0},{-1,0}},
10,IT_MAN, 50,1,
15,0,0,0,2,
-1,0,
-1,0, 0,
0, NULL, 0,
"", { "", "", "", "" }, 0, 0},
{"centaur","centaurs","CTAU",
ItemType::DISABLED | ItemType::NOTRANSPORT,
NULL,0,0,0, {{-1,0}, {-1,0},{-1,0},{-1,0}},
Expand Down Expand Up @@ -2344,8 +2314,6 @@ ManType mt[] = {
0,0,{NULL, NULL, NULL, NULL, NULL, NULL}},
{"LEAD", R_NEXUS,
5,5,{NULL, NULL, NULL, NULL, NULL, NULL}},
{"HUMN", R_PLAIN,
3,2,{"SHIP", "SAIL", "BUIL", "COMB", "HORS", NULL}},
{"VIKI", R_FOREST,
3,2,{"SHIP", "SAIL", "LUMB", "COMB", NULL, NULL}},
{"BARB", R_MOUNTAIN,
Expand All @@ -2368,8 +2336,6 @@ ManType mt[] = {
3,2,{"HEAL", "FARM", "ENTE", "HORS", NULL, NULL}},
{"TELF", R_SWAMP,
3,2,{"HERB", "HEAL", "RANC", "LBOW", NULL, NULL}},
{"MDWA", R_MOUNTAIN,
3,2,{"MINI", "QUAR", "BUIL", "WEAP", "ARMO", NULL}},
{"IDWA", R_TUNDRA,
3,2,{"FISH", "BUIL", "XBOW", "SHIP", NULL, NULL}},
{"HDWA", R_MOUNTAIN,
Expand Down Expand Up @@ -2407,8 +2373,6 @@ ManType mt[] = {
4,2,{"COMB", NULL, NULL, NULL, NULL, NULL}},
{"GNOM", R_CERAN_HILL,
3,2,{"SHIP", "WEAP", "BUIL", "CARP", NULL, NULL}},
{"DGNO", R_GROTTO,
3,2,{"SHIP", "WEAP", "BUIL", "CARP", NULL, NULL}},
{"HILA", R_CERAN_HILL,
3,2,{"COMB", "WEAP", NULL, NULL, NULL, NULL}},
{"MINO", R_GROTTO,
Expand Down
3 changes: 0 additions & 3 deletions gamedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
//
enum {
I_LEADERS,
I_HUMAN,
I_VIKING,
I_BARBARIAN,
I_PLAINSMAN,
Expand All @@ -43,14 +42,12 @@ enum {
I_SEAELF,
I_HIGHELF,
I_TRIBALELF,
I_MOUNTAINDWARF,
I_ICEDWARF,
I_HILLDWARF,
I_UNDERDWARF,
I_DESERTDWARF,
I_ORC,
I_GNOME,
I_DEEPGNOME,
I_CENTAURMAN,
I_SILVER,
I_GRAIN,
Expand Down
84 changes: 40 additions & 44 deletions neworigins/extra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,18 +1199,18 @@ void Game::ModifyTablesPerRuleset(void)

ModifyItemBasePrice(I_LEADERS, 1000);

EnableItem(I_HUMAN);
ModifyItemBasePrice(I_HUMAN, 40);
ModifyRaceSkillLevels("HUMN", 4, 2);
ModifyRaceSkills("HUMN", 0, "ARMO");
ModifyRaceSkills("HUMN", 1, "RIDI");
ModifyRaceSkills("HUMN", 2, "COMB");
ModifyRaceSkills("HUMN", 3, "MINI");
ModifyRaceSkills("HUMN", 4, "FARM");
ModifyRaceSkills("HUMN", 5, "RANC");
EnableItem(I_MAN);
ModifyItemBasePrice(I_MAN, 40);
ModifyRaceSkillLevels("MAN", 4, 2);
ModifyRaceSkills("MAN", 0, "ARMO");
ModifyRaceSkills("MAN", 1, "RIDI");
ModifyRaceSkills("MAN", 2, "COMB");
ModifyRaceSkills("MAN", 3, "MINI");
ModifyRaceSkills("MAN", 4, "FARM");
ModifyRaceSkills("MAN", 5, "RANC");

EnableItem(I_MOUNTAINDWARF);
ModifyItemBasePrice(I_MOUNTAINDWARF, 40);
EnableItem(I_HILLDWARF);
ModifyItemBasePrice(I_HILLDWARF, 40);
ModifyRaceSkillLevels("MDWA", 5, 2);
ModifyRaceSkills("MDWA", 0, "ARMO");
ModifyRaceSkills("MDWA", 1, "WEAP");
Expand Down Expand Up @@ -1273,15 +1273,15 @@ void Game::ModifyTablesPerRuleset(void)
ModifyRaceSkills("GNOM", 4, "FARM");
ModifyRaceSkills("GNOM", 5, "ENTE");

EnableItem(I_DEEPGNOME);
ModifyItemBasePrice(I_DEEPGNOME, 30);
ModifyRaceSkillLevels("DGNO", 5, 2);
ModifyRaceSkills("DGNO", 0, "MINI");
ModifyRaceSkills("DGNO", 1, "XBOW");
ModifyRaceSkills("DGNO", 2, "QUAR");
ModifyRaceSkills("DGNO", 3, "WEAP");
ModifyRaceSkills("DGNO", 4, "RANC");
ModifyRaceSkills("DGNO", 5, "BUIL");
// EnableItem(I_DEEPGNOME);
// ModifyItemBasePrice(I_DEEPGNOME, 30);
// ModifyRaceSkillLevels("DGNO", 5, 2);
// ModifyRaceSkills("DGNO", 0, "MINI");
// ModifyRaceSkills("DGNO", 1, "XBOW");
// ModifyRaceSkills("DGNO", 2, "QUAR");
// ModifyRaceSkills("DGNO", 3, "WEAP");
// ModifyRaceSkills("DGNO", 4, "RANC");
// ModifyRaceSkills("DGNO", 5, "BUIL");

EnableItem(I_CENTAURMAN);
ModifyItemBasePrice(I_CENTAURMAN, 50);
Expand Down Expand Up @@ -1328,10 +1328,6 @@ void Game::ModifyTablesPerRuleset(void)
ModifyRaceSkills("ORC", 2, "COMB");
ModifyRaceSkills("ORC", 3, "BUIL");

// TEST:
// ModifyRaceName(I_ORC);


//
// Change craft: adamantium
//
Expand All @@ -1357,11 +1353,11 @@ void Game::ModifyTablesPerRuleset(void)
ModifyTerrainRace(R_PLAIN, 0, I_HIGHELF);
ModifyTerrainRace(R_PLAIN, 1, I_CENTAURMAN);
ModifyTerrainRace(R_PLAIN, 2, I_GNOME);
ModifyTerrainRace(R_PLAIN, 3, I_HUMAN);
ModifyTerrainRace(R_PLAIN, 3, I_MAN);
ModifyTerrainCoastRace(R_PLAIN, 0, I_HIGHELF);
ModifyTerrainCoastRace(R_PLAIN, 1, I_CENTAURMAN);
ModifyTerrainCoastRace(R_PLAIN, 2, I_GNOME);
ModifyTerrainCoastRace(R_PLAIN, 3, I_HUMAN);
ModifyTerrainCoastRace(R_PLAIN, 3, I_MAN);

ClearTerrainRaces(R_FOREST);
ModifyTerrainRace(R_FOREST, 0, I_WOODELF);
Expand All @@ -1372,12 +1368,12 @@ void Game::ModifyTablesPerRuleset(void)
ModifyTerrainCoastRace(R_FOREST, 2, I_HIGHELF);

ClearTerrainRaces(R_MOUNTAIN);
ModifyTerrainRace(R_MOUNTAIN, 0, I_MOUNTAINDWARF);
ModifyTerrainRace(R_MOUNTAIN, 0, I_HILLDWARF);
ModifyTerrainRace(R_MOUNTAIN, 1, I_ORC);
ModifyTerrainRace(R_MOUNTAIN, 2, I_HUMAN);
ModifyTerrainCoastRace(R_MOUNTAIN, 0, I_MOUNTAINDWARF);
ModifyTerrainRace(R_MOUNTAIN, 2, I_MAN);
ModifyTerrainCoastRace(R_MOUNTAIN, 0, I_HILLDWARF);
ModifyTerrainCoastRace(R_MOUNTAIN, 1, I_ORC);
ModifyTerrainCoastRace(R_MOUNTAIN, 2, I_HUMAN);
ModifyTerrainCoastRace(R_MOUNTAIN, 2, I_MAN);

ClearTerrainRaces(R_SWAMP);
ModifyTerrainRace(R_SWAMP, 0, I_LIZARDMAN);
Expand All @@ -1399,11 +1395,11 @@ void Game::ModifyTablesPerRuleset(void)
ModifyTerrainRace(R_DESERT, 0, I_GNOME);
ModifyTerrainRace(R_DESERT, 1, I_GNOLL);
ModifyTerrainRace(R_DESERT, 2, I_GOBLINMAN);
ModifyTerrainRace(R_DESERT, 3, I_HUMAN);
ModifyTerrainRace(R_DESERT, 3, I_MAN);
ModifyTerrainCoastRace(R_DESERT, 0, I_GNOME);
ModifyTerrainCoastRace(R_DESERT, 1, I_GNOLL);
ModifyTerrainCoastRace(R_DESERT, 2, I_GOBLINMAN);
ModifyTerrainCoastRace(R_DESERT, 3, I_HUMAN);
ModifyTerrainCoastRace(R_DESERT, 3, I_MAN);

ClearTerrainRaces(R_TUNDRA);
ModifyTerrainRace(R_TUNDRA, 0, I_ICEDWARF);
Expand All @@ -1416,48 +1412,48 @@ void Game::ModifyTablesPerRuleset(void)
// Underworld

ClearTerrainRaces(R_CAVERN);
ModifyTerrainRace(R_CAVERN, 0, I_HUMAN);
ModifyTerrainRace(R_CAVERN, 0, I_MAN);
ModifyTerrainRace(R_CAVERN, 1, I_UNDERDWARF);
ModifyTerrainRace(R_CAVERN, 2, I_DROWMAN);
ModifyTerrainRace(R_CAVERN, 3, I_DEEPGNOME);
ModifyTerrainCoastRace(R_CAVERN, 0, I_HUMAN);
ModifyTerrainRace(R_CAVERN, 3, I_GNOME);
ModifyTerrainCoastRace(R_CAVERN, 0, I_MAN);
ModifyTerrainCoastRace(R_CAVERN, 1, I_UNDERDWARF);
ModifyTerrainCoastRace(R_CAVERN, 2, I_DROWMAN);
ModifyTerrainCoastRace(R_CAVERN, 3, I_DEEPGNOME);
ModifyTerrainCoastRace(R_CAVERN, 3, I_GNOME);

ClearTerrainRaces(R_UFOREST);
ModifyTerrainRace(R_UFOREST, 0, I_UNDERDWARF);
ModifyTerrainRace(R_UFOREST, 1, I_DROWMAN);
ModifyTerrainRace(R_UFOREST, 2, I_DEEPGNOME);
ModifyTerrainRace(R_UFOREST, 2, I_GNOME);
ModifyTerrainCoastRace(R_UFOREST, 0, I_UNDERDWARF);
ModifyTerrainCoastRace(R_UFOREST, 1, I_DROWMAN);
ModifyTerrainCoastRace(R_UFOREST, 2, I_DEEPGNOME);
ModifyTerrainCoastRace(R_UFOREST, 2, I_GNOME);

// Underdeep

ClearTerrainRaces(R_CHASM);
ModifyTerrainRace(R_CHASM, 0, I_UNDERDWARF);
ModifyTerrainRace(R_CHASM, 1, I_DROWMAN);
ModifyTerrainRace(R_CHASM, 2, I_DEEPGNOME);
ModifyTerrainRace(R_CHASM, 2, I_GNOME);
ModifyTerrainCoastRace(R_CHASM, 0, I_UNDERDWARF);
ModifyTerrainCoastRace(R_CHASM, 1, I_DROWMAN);
ModifyTerrainCoastRace(R_CHASM, 2, I_DEEPGNOME);
ModifyTerrainCoastRace(R_CHASM, 2, I_GNOME);

ClearTerrainRaces(R_DFOREST);
ModifyTerrainRace(R_DFOREST, 0, I_UNDERDWARF);
ModifyTerrainRace(R_DFOREST, 1, I_DROWMAN);
ModifyTerrainRace(R_DFOREST, 2, I_DEEPGNOME);
ModifyTerrainRace(R_DFOREST, 2, I_GNOME);
ModifyTerrainCoastRace(R_DFOREST, 0, I_UNDERDWARF);
ModifyTerrainCoastRace(R_DFOREST, 1, I_DROWMAN);
ModifyTerrainCoastRace(R_DFOREST, 2, I_DEEPGNOME);
ModifyTerrainCoastRace(R_DFOREST, 2, I_GNOME);

ClearTerrainRaces(R_GROTTO);
ModifyTerrainRace(R_GROTTO, 0, I_UNDERDWARF);
ModifyTerrainRace(R_GROTTO, 1, I_DROWMAN);
ModifyTerrainRace(R_GROTTO, 2, I_DEEPGNOME);
ModifyTerrainRace(R_GROTTO, 2, I_GNOME);
ModifyTerrainCoastRace(R_GROTTO, 0, I_UNDERDWARF);
ModifyTerrainCoastRace(R_GROTTO, 1, I_DROWMAN);
ModifyTerrainCoastRace(R_GROTTO, 2, I_DEEPGNOME);
ModifyTerrainCoastRace(R_GROTTO, 2, I_GNOME);


if ((Globals->UNDERDEEP_LEVELS > 0) || (Globals->UNDERWORLD_LEVELS > 1)) {
Expand Down
2 changes: 1 addition & 1 deletion neworigins/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static GameDefs g = {

10, /* STUDENTS_PER_TEACHER */
10, /* MAINTENANCE_COST */
700, /* LEADER_COST */
20, /* LEADER_COST */

0, /* MAINTAINENCE_MULTIPLIER */
GameDefs::MULT_NONE, /* MULTIPLIER_USE */
Expand Down

0 comments on commit 7f9796c

Please sign in to comment.