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" },
{ "p5", "peasantblood" },
{ "p8", "nestwarmth" },
{ "diamond", "adamantium" },
{ "diamondaxe", "adamantiumaxe" },
{ "diamondplate", "adamantiumplate" },
{ NULL, NULL },
};

View file

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

View file

@ -376,6 +376,25 @@ growing_trees(void)
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/unguard.h>
typedef struct gate_data {
@ -839,6 +858,7 @@ fix_heroes(void)
}
#endif
static void
fix_groups(void)
{
@ -894,6 +914,8 @@ korrektur(void)
do_once("asfi", &fix_astral_firewalls);
fix_astralplane();
fix_toads();
do_once("admt", &fix_adamantium);
/* fix_heroes(); */
verify_owners(false);
/* fix_herbtypes(); */

View file

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