newly unused code can go. less code = good.

This commit is contained in:
Enno Rehling 2007-06-20 18:19:43 +00:00
parent 1a2c3942f1
commit 004d0f856c
1 changed files with 0 additions and 84 deletions

View File

@ -666,90 +666,6 @@ mod_elves_only(const unit * u, const region * r, skill_t sk, int value)
return -118;
}
static int
limit_oldresource(const region * r, const resource_type * rtype)
/* TODO: split into seperate functions. really much nicer. */
{
if (rtype==oldresourcetype[R_HORSE]) {
return rhorses(r);
} else {
assert(!"das kann man nicht produzieren!");
}
return 0;
}
static void
produce_oldresource(region * r, const resource_type * rtype, int norders)
/* TODO: split into seperate functions. really much nicer. */
{
assert(norders>0);
if (rtype==oldresourcetype[R_HORSE]) {
int avail = rhorses(r);
assert(norders <= avail);
rsethorses(r, avail-norders);
} else {
assert(!"unknown resource");
}
}
typedef const char* translate_t[5];
static translate_t translation[] = {
{ "Delphin", "dolphin", "dolphin_p", "dolphin", "dolphin_p" },
{ "Holz", "log", "log_p", "log", "log_p" },
{ "Eisen", "iron", "iron_p", "iron", "iron_p" },
{ "Drachenblut", "dragonblood", "dragonblood_p", "dragonblood", "dragonblood_p" },
{ "Feenstiefel", "fairyboot", "fairyboot_p", "fairyboot", "fairyboot_p" },
{ "Gürtel der Trollstärke", "trollbelt", "trollbelt_p", "trollbelt", "trollbelt_p" },
{ "Tiegel mit Krötenschleim", "toadslime", "toadslime_p", "toadslime", "toadslime_p" },
{ "Mallorn", "mallorn", "mallorn_p", "mallorn", "mallorn_p" },
{ "Wagen", "cart", "cart_p", "cart", "cart_p" },
{ "Plattenpanzer", "plate", "plate_p", "plate", "plate_p" },
{ "Trollgürtel", "trollbelt", "trollbelt_p", "trollbelt", "trollbelt_p" },
{ "Balsam", "balm", "balm_p", "balm", "balm_p" },
{ "Gewürz", "spice", "spice_p", "spice", "spice_p" },
{ "Myrrhe", "myrrh", "myrrh_p", "myrrh", "myrrh_p" },
{ "Stein", "stone", "stone_p", "stone", "stone_p" },
{ "Öl", "oil", "oil_p", "oil", "oil_p" },
{ "Seide", "silk", "silk_p", "silk", "silk_p" },
{ "Weihrauch", "incense", "incense_p", "incense", "incense_p" },
{ "Bihänder", "greatsword", "greatsword_p", "greatsword", "greatsword_p" },
{ "Laen", "laen", "laen_p", "laen", "laen_p" },
{ "Goliathwasser", "goliathwater", "goliathwater_p", NULL, NULL },
{ "Wasser des Lebens", "p2", "p2_p", NULL, NULL },
{ "Bauernblut", "peasantblood", "peasantblood_p", NULL, NULL },
{ "Gehirnschmalz", "p6", "p6_p", NULL, NULL },
{ "Nestwärme", "nestwarmth", "nestwarmth_p", NULL, NULL },
{ "Pferdeglück", "p9", "p9_p", NULL, NULL },
{ "Berserkerblut", "p10", "p10_p", NULL, NULL },
{ "Bauernlieb", "p11", "p11_p", NULL, NULL },
{ "Heiltrank", "p14", "p14_p", NULL, NULL },
{ "Flachwurz", "h0", "h0_p", NULL, NULL },
{ "Elfenlieb", "h5", "h5_p", NULL, NULL },
{ "Wasserfinder", "h9", "h9_p", NULL, NULL },
{ "Windbeutel", "h12", "h12_p", NULL, NULL },
{ "Steinbeißer", "h15", "h15_p", NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
};
static int
item_score(item_t i)
{
switch (i) {
case I_AMULET_OF_HEALING:
case I_AMULET_OF_TRUE_SEEING:
case I_RING_OF_INVISIBILITY:
case I_RING_OF_POWER:
case I_CHASTITY_BELT:
case I_TROLLBELT:
case I_RING_OF_NIMBLEFINGER:
case I_FEENSTIEFEL:
return 6000;
}
return 0;
}
static void
init_olditems(void)
{