forked from github/server
init of old items fails with new hash function
This commit is contained in:
parent
88ac2f2496
commit
939773826b
|
@ -760,11 +760,6 @@ static t_item itemdata[MAXITEMS] = {
|
|||
{"Sphäre der Unsichtbarkeit", "Sphären der Unsichtbarkeit", "", ""},
|
||||
IS_MAGIC, 0, 0, {0, 0, 0, 0, 0, 0}, 100, 0, 0, NULL
|
||||
},
|
||||
{ /* I_TOADSLIME 73 */
|
||||
{"Tiegel mit Krötenschleim", "Tiegel mit Krötenschleim",
|
||||
"", ""},
|
||||
IS_MAGIC, 0, 0, {0, 0, 0, 0, 0, 0}, 100, 0, 0, NULL
|
||||
},
|
||||
{ /* I_BAG_OF_HOLDING */
|
||||
{"Zauberbeutel", "Zauberbeutel", "Zauberbeutel", "Zauberbeutel"},
|
||||
IS_MAGIC, 0, 0, {0, 0, 0, 0, 0, 0}, 100, 0, FL_ITEM_NOTINBAG|FL_ITEM_NOTLOST, NULL
|
||||
|
@ -883,6 +878,7 @@ static translate_t translation[] = {
|
|||
{ "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" },
|
||||
|
|
|
@ -284,7 +284,6 @@ enum {
|
|||
I_AURAKULUM,
|
||||
I_SEASERPENTHEAD,
|
||||
I_SPHERE_OF_INVISIBILITY,
|
||||
I_TOADSLIME,
|
||||
I_BAG_OF_HOLDING,
|
||||
I_SACK_OF_CONSERVATION,
|
||||
I_TACTICCRYSTAL,
|
||||
|
|
|
@ -1318,7 +1318,12 @@ do_fumble(castorder *co)
|
|||
* trigger and that's added to the triggerlit of the mage gone toad.
|
||||
*/
|
||||
trigger * trestore = trigger_changerace(u, u->race, u->irace);
|
||||
if (rand()%10>2) t_add(&trestore, trigger_giveitem(u, olditemtype[I_TOADSLIME], 1));
|
||||
if (chance(0.7)) {
|
||||
const item_type * it_toadslime = it_find("toadslime");
|
||||
if (it_toadslime!=NULL) {
|
||||
t_add(&trestore, trigger_giveitem(u, it_toadslime, 1));
|
||||
}
|
||||
}
|
||||
add_trigger(&u->attribs, "timer", trigger_timeout(duration, trestore));
|
||||
}
|
||||
u->race = new_race[RC_TOAD];
|
||||
|
|
|
@ -636,4 +636,8 @@
|
|||
</item>
|
||||
</resource>
|
||||
|
||||
<resource name="toadslime" appearance="vial">
|
||||
<item weight="100" score="0"/>
|
||||
</resource>
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue