fixes re-run 574

This commit is contained in:
Enno Rehling 2008-06-08 09:00:35 +00:00
parent 04029eef36
commit ac595313cf
4 changed files with 27 additions and 3 deletions

View file

@ -387,6 +387,9 @@ static const char * it_aliases[][2] = {
{ "p1", "goliathwater" }, { "p1", "goliathwater" },
{ "p5", "peasantblood" }, { "p5", "peasantblood" },
{ "p8", "nestwarmth" }, { "p8", "nestwarmth" },
{ "diamond", "adamantium" },
{ "diamondaxe", "adamantiumaxe" },
{ "diamondplate", "adamantiumplate" },
{ NULL, NULL }, { NULL, NULL },
}; };

View file

@ -359,7 +359,7 @@ report_resources(const seen_region * sr, resource_report * result, int size, con
if (money) { if (money) {
if (n>=size) return -1; if (n>=size) return -1;
report_resource(result+n, "rm_money", peasants, -1); report_resource(result+n, "rm_money", money, -1);
++n; ++n;
} }
if (peasants) { if (peasants) {

View file

@ -376,6 +376,25 @@ growing_trees(void)
return 0; return 0;
} }
static int fix_adamantium(void)
{
faction * f;
for (f=factions;f;f=f->next) {
const struct item_type * itype;
int o = 1;
int p = (f->no % 5)?1:0;
int a = (f->no % 5)?0:1;
itype = it_find("adamantium");
i_change(&f->items, itype, o-i_get(f->items, itype));
itype = it_find("adamantiumaxe");
i_change(&f->items, itype, a-i_get(f->items, itype));
itype = it_find("adamantiumplate");
i_change(&f->items, itype, p-i_get(f->items, itype));
}
return 0;
}
#include <triggers/gate.h> #include <triggers/gate.h>
#include <triggers/unguard.h> #include <triggers/unguard.h>
typedef struct gate_data { typedef struct gate_data {
@ -839,6 +858,7 @@ fix_heroes(void)
} }
#endif #endif
static void static void
fix_groups(void) fix_groups(void)
{ {
@ -894,6 +914,8 @@ korrektur(void)
do_once("asfi", &fix_astral_firewalls); do_once("asfi", &fix_astral_firewalls);
fix_astralplane(); fix_astralplane();
fix_toads(); fix_toads();
do_once("admt", &fix_adamantium);
/* fix_heroes(); */ /* fix_heroes(); */
verify_owners(false); verify_owners(false);
/* fix_herbtypes(); */ /* fix_herbtypes(); */

View file

@ -176,8 +176,7 @@
<resource name="adamantiumaxe"> <resource name="adamantiumaxe">
<item weight="100" score="500"> <item weight="100" score="500">
<construction skill="weaponsmithing" minskill="8" reqsize="1"> <construction skill="weaponsmithing" minskill="8" reqsize="1">
<requirement type="adamantium" quantity="1"/> <requirement type="adamantium" quantity="2"/>
<requirement type="log" quantity="1"/>
</construction> </construction>
<weapon cut="true" skill="melee" offmod="2" defmod="-2" magres="0.30"> <weapon cut="true" skill="melee" offmod="2" defmod="-2" magres="0.30">
<damage type="rider" value="3d4+15"/> <damage type="rider" value="3d4+15"/>