diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 0e2878cae..c5db5ffd4 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -1871,7 +1871,6 @@ report(FILE *F, faction * f, const faction_list * addresses, ADDMSG(&f->msgs, msg_message("changepasswd", "value", gc_add(strdup(f->passw)))); } - */ /* Was tut das? */ RENDER(f, buf, sizeof(buf), ("newbie_password", "password", f->passw)); rnl(F); diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index 60b9fbb10..2d23ab92a 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -145,6 +145,9 @@ static attrib_type at_driveweight = { int personcapacity(const unit *u) { +#if RACE_CAPACITY + int cap = u->race->weight+u->race->capacity; +#else int cap = u->race->weight+540; if (old_race(u->race) == RC_TROLL) @@ -153,7 +156,8 @@ personcapacity(const unit *u) else if(old_race(u->race) == RC_GOBLIN) cap -= 100; #endif - +#endif + if (fspecial(u->faction, FS_QUICK)) cap -= 200; diff --git a/src/common/kernel/race.c b/src/common/kernel/race.c index 9f6d52534..3df5d4bbf 100644 --- a/src/common/kernel/race.c +++ b/src/common/kernel/race.c @@ -618,6 +618,9 @@ tagbegin(struct xml_stack * stack) rc->recruitcost = xml_ivalue(tag, "recruitcost"); rc->maintenance = xml_ivalue(tag, "maintenance"); rc->weight = xml_ivalue(tag, "weight"); +#if RACE_CAPACITY + rc->capacity = xml_ivalue(tag, "capacity"); +#endif rc->speed = xml_fvalue(tag, "speed"); rc->hitpoints = xml_ivalue(tag, "hp"); rc->def_damage = strdup(xml_value(tag, "damage")); diff --git a/src/common/kernel/race.h b/src/common/kernel/race.h index 005f27847..1546b4180 100644 --- a/src/common/kernel/race.h +++ b/src/common/kernel/race.h @@ -58,6 +58,7 @@ typedef struct race { int maintenance; int splitsize; int weight; + int capacity; double speed; int hitpoints; const char *def_damage; diff --git a/src/res/races.xml b/src/res/races.xml index 10e5e1a5d..bf6860bc5 100644 --- a/src/res/races.xml +++ b/src/res/races.xml @@ -1,5 +1,5 @@ - + @@ -32,11 +32,11 @@ - + - + @@ -44,7 +44,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -76,7 +76,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -110,7 +110,7 @@ - + @@ -125,7 +125,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -183,11 +183,11 @@ - + - + @@ -198,7 +198,7 @@ - + @@ -232,7 +232,7 @@ - + @@ -261,7 +261,7 @@ - + @@ -289,7 +289,7 @@ - + @@ -319,7 +319,7 @@ - + @@ -349,7 +349,7 @@ - + @@ -380,7 +380,7 @@ - + @@ -415,7 +415,7 @@ - + @@ -446,7 +446,7 @@ - + @@ -479,7 +479,7 @@ - + @@ -510,7 +510,7 @@ - + @@ -540,7 +540,7 @@ - + @@ -571,7 +571,7 @@ - + @@ -601,7 +601,7 @@ - + @@ -633,7 +633,7 @@ - + @@ -665,7 +665,7 @@ - + @@ -695,7 +695,7 @@ - + @@ -728,7 +728,7 @@ - + @@ -759,21 +759,21 @@ - + - + - + - + @@ -805,55 +805,55 @@ - + - + - + - + - + - + - + - + - + - + @@ -861,12 +861,12 @@ - + - + @@ -878,7 +878,7 @@ - + @@ -891,7 +891,7 @@ - + @@ -903,19 +903,19 @@ - + - + - + @@ -933,7 +933,7 @@ - + @@ -958,7 +958,7 @@ - + @@ -989,7 +989,7 @@ - + @@ -1017,7 +1017,7 @@ - + @@ -1048,7 +1048,7 @@ - + @@ -1078,7 +1078,7 @@ - + @@ -1093,7 +1093,7 @@ - + @@ -1118,7 +1118,7 @@ - + @@ -1148,7 +1148,7 @@ - + @@ -1177,7 +1177,7 @@ - + @@ -1203,7 +1203,7 @@ - + @@ -1234,7 +1234,7 @@ - + @@ -1263,7 +1263,7 @@ - + @@ -1278,12 +1278,12 @@ - + - + @@ -1291,7 +1291,7 @@ - +