forked from github/server
Armbrust aus dem Code genommen.
Abbruch, wenn ein Item aus dem Datenfile nicht in den XML-Resourcen ist.
This commit is contained in:
parent
5dfc2f08b6
commit
17958f9683
|
@ -57,7 +57,6 @@ enum {
|
||||||
WP_EOGSWORD,
|
WP_EOGSWORD,
|
||||||
WP_CATAPULT,
|
WP_CATAPULT,
|
||||||
WP_LONGBOW,
|
WP_LONGBOW,
|
||||||
WP_CROSSBOW,
|
|
||||||
WP_SPEAR,
|
WP_SPEAR,
|
||||||
WP_LANCE,
|
WP_LANCE,
|
||||||
WP_RUSTY_HALBERD,
|
WP_RUSTY_HALBERD,
|
||||||
|
@ -67,7 +66,6 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
RL_CATAPULT,
|
RL_CATAPULT,
|
||||||
RL_CROSSBOW,
|
|
||||||
RL_MAX,
|
RL_MAX,
|
||||||
RL_NONE
|
RL_NONE
|
||||||
};
|
};
|
||||||
|
@ -110,8 +108,6 @@ static weapondata weapontable[WP_MAX + 1] =
|
||||||
{0.00, "3d10+5", "3d10+5", I_CATAPULT, SK_CATAPULT, 0, 0, true, false, { RL_CATAPULT, 5 }, BASH },
|
{0.00, "3d10+5", "3d10+5", I_CATAPULT, SK_CATAPULT, 0, 0, true, false, { RL_CATAPULT, 5 }, BASH },
|
||||||
/* Langbogen */
|
/* Langbogen */
|
||||||
{0.00, "1d11+1", "1d11+1", I_LONGBOW, SK_LONGBOW, 0, 0, true, false, { RL_NONE, 0 }, PIERCE },
|
{0.00, "1d11+1", "1d11+1", I_LONGBOW, SK_LONGBOW, 0, 0, true, false, { RL_NONE, 0 }, PIERCE },
|
||||||
/* Armbrust */
|
|
||||||
{0.00, "3d3+5", "3d3+5", I_CROSSBOW, SK_CROSSBOW, 0, 0, true, false, { RL_CROSSBOW, 2 }, PIERCE | ARMORPIERCING },
|
|
||||||
/* Speer */
|
/* Speer */
|
||||||
{0.00, "1d10+0", "1d12+2", I_SPEAR, SK_SPEAR, 0, 0, false, false, { RL_NONE, 0}, PIERCE },
|
{0.00, "1d10+0", "1d12+2", I_SPEAR, SK_SPEAR, 0, 0, false, false, { RL_NONE, 0}, PIERCE },
|
||||||
/* Lanze */
|
/* Lanze */
|
||||||
|
|
|
@ -897,10 +897,6 @@ static t_item itemdata[MAXITEMS] = {
|
||||||
{"Speer", "Speere", "Speer", "Speere"},
|
{"Speer", "Speere", "Speer", "Speere"},
|
||||||
IS_PRODUCT, SK_WEAPONSMITH, 2, {0, 1, 0, 0, 0, 0}, 100, 0, 0, NULL
|
IS_PRODUCT, SK_WEAPONSMITH, 2, {0, 1, 0, 0, 0, 0}, 100, 0, 0, NULL
|
||||||
},
|
},
|
||||||
{ /* I_CROSSBOW */
|
|
||||||
{"Armbrust", "Armbrüste", "Armbrust", "Armbrüste"},
|
|
||||||
IS_PRODUCT, SK_WEAPONSMITH, 3, {0, 1, 0, 0, 0, 0}, 100, 0, 0, NULL
|
|
||||||
},
|
|
||||||
{ /* I_LONGBOW */
|
{ /* I_LONGBOW */
|
||||||
{"Bogen", "Bögen", "Bogen", "Bögen"},
|
{"Bogen", "Bögen", "Bogen", "Bögen"},
|
||||||
IS_PRODUCT, SK_WEAPONSMITH, 2, {0, 1, 0, 0, 0, 0}, 100, 0, 0, NULL
|
IS_PRODUCT, SK_WEAPONSMITH, 2, {0, 1, 0, 0, 0, 0}, 100, 0, 0, NULL
|
||||||
|
|
|
@ -283,7 +283,6 @@ enum {
|
||||||
I_WAGON,
|
I_WAGON,
|
||||||
I_CATAPULT,
|
I_CATAPULT,
|
||||||
I_SPEAR,
|
I_SPEAR,
|
||||||
I_CROSSBOW,
|
|
||||||
I_LONGBOW,
|
I_LONGBOW,
|
||||||
I_CHAIN_MAIL, /* 10 */
|
I_CHAIN_MAIL, /* 10 */
|
||||||
I_PLATE_ARMOR,
|
I_PLATE_ARMOR,
|
||||||
|
@ -348,7 +347,6 @@ enum {
|
||||||
R_WAGON,
|
R_WAGON,
|
||||||
R_CATAPULT,
|
R_CATAPULT,
|
||||||
R_SPEAR,
|
R_SPEAR,
|
||||||
R_CROSSBOW,
|
|
||||||
R_LONGBOW,
|
R_LONGBOW,
|
||||||
R_CHAIN_MAIL,
|
R_CHAIN_MAIL,
|
||||||
R_PLATE_ARMOR,
|
R_PLATE_ARMOR,
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#define GUARD_DISABLES_PRODUCTION 1
|
#define GUARD_DISABLES_PRODUCTION 1
|
||||||
#define RESOURCE_QUANTITY 0.5
|
#define RESOURCE_QUANTITY 0.5
|
||||||
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
||||||
#define CHANGED_CROSSBOWS 1
|
|
||||||
#define COMBAT_TURNS 5
|
#define COMBAT_TURNS 5
|
||||||
#define PEASANTS_DO_NOT_STARVE 0
|
#define PEASANTS_DO_NOT_STARVE 0
|
||||||
#define NEW_MIGRATION 1
|
#define NEW_MIGRATION 1
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#define GUARD_DISABLES_PRODUCTION 1
|
#define GUARD_DISABLES_PRODUCTION 1
|
||||||
#define RESOURCE_QUANTITY 0.5
|
#define RESOURCE_QUANTITY 0.5
|
||||||
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
||||||
#define CHANGED_CROSSBOWS 1
|
|
||||||
#define COMBAT_TURNS 5
|
#define COMBAT_TURNS 5
|
||||||
#define PEASANTS_DO_NOT_STARVE 0
|
#define PEASANTS_DO_NOT_STARVE 0
|
||||||
#define NEW_MIGRATION 1
|
#define NEW_MIGRATION 1
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#define GUARD_DISABLES_PRODUCTION 1
|
#define GUARD_DISABLES_PRODUCTION 1
|
||||||
#define RESOURCE_QUANTITY 0.5
|
#define RESOURCE_QUANTITY 0.5
|
||||||
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
||||||
#define CHANGED_CROSSBOWS 1
|
|
||||||
#define NEWATSROI 0
|
#define NEWATSROI 0
|
||||||
#define COMBAT_TURNS 5
|
#define COMBAT_TURNS 5
|
||||||
#define PEASANTS_DO_NOT_STARVE 0
|
#define PEASANTS_DO_NOT_STARVE 0
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#define GUARD_DISABLES_PRODUCTION 1
|
#define GUARD_DISABLES_PRODUCTION 1
|
||||||
#define RESOURCE_QUANTITY 0.5
|
#define RESOURCE_QUANTITY 0.5
|
||||||
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
#define RECRUITFRACTION 40 /* 100/RECRUITFRACTION% */
|
||||||
#define CHANGED_CROSSBOWS 1
|
|
||||||
#define COMBAT_TURNS 5
|
#define COMBAT_TURNS 5
|
||||||
#define PEASANTS_DO_NOT_STARVE 0
|
#define PEASANTS_DO_NOT_STARVE 0
|
||||||
#define NEW_MIGRATION 1
|
#define NEW_MIGRATION 1
|
||||||
|
|
|
@ -75,4 +75,19 @@
|
||||||
</item>
|
</item>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
|
<!-- christmas items: start -->
|
||||||
|
<resource name="almond">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
<resource name="apple">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
<resource name="nut">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
<resource name="cookie">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
<!-- christmas items: end -->
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -18,22 +18,6 @@
|
||||||
<item notlost="yes" weight="0"/>
|
<item notlost="yes" weight="0"/>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
<resource name="almond">
|
|
||||||
<item weight="0"/>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource name="apple">
|
|
||||||
<item weight="0"/>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource name="nut">
|
|
||||||
<item weight="0"/>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource name="cookie">
|
|
||||||
<item weight="0"/>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource name="snowball">
|
<resource name="snowball">
|
||||||
<!-- xmas gimmik -->
|
<!-- xmas gimmik -->
|
||||||
<item notlost="yes" weight="0">
|
<item notlost="yes" weight="0">
|
||||||
|
@ -148,12 +132,25 @@
|
||||||
</item>
|
</item>
|
||||||
</resource>
|
</resource>
|
||||||
|
|
||||||
|
<resource name="crossbow">
|
||||||
|
<item weight="100">
|
||||||
|
<construction skill="sk_weaponsmithing" minskill="3" reqsize="1">
|
||||||
|
<requirement type="log" quantity="1"/>
|
||||||
|
</construction>
|
||||||
|
<weapon armorpiercing="true" pierce="true" missile="true" skill="sk_crossbow" offmod="0" defmod="0" reload="2">
|
||||||
|
<damage type="rider" value="3d3+5"/>
|
||||||
|
<damage type="footman" value="3d3+5"/>
|
||||||
|
<modifier type="missile_target" value="2"/>
|
||||||
|
</weapon>
|
||||||
|
</item>
|
||||||
|
</resource>
|
||||||
|
|
||||||
<resource name="mallorncrossbow">
|
<resource name="mallorncrossbow">
|
||||||
<item weight="100">
|
<item weight="100">
|
||||||
<construction skill="sk_weaponsmithing" minskill="5" reqsize="1">
|
<construction skill="sk_weaponsmithing" minskill="5" reqsize="1">
|
||||||
<requirement type="mallorn" quantity="1"/>
|
<requirement type="mallorn" quantity="1"/>
|
||||||
</construction>
|
</construction>
|
||||||
<weapon pierce="true" missile="true" skill="sk_crossbow" offmod="0" defmod="0" reload="2" magres="0.15">
|
<weapon armorpiercing="true" pierce="true" missile="true" skill="sk_crossbow" offmod="0" defmod="0" reload="2" magres="0.15">
|
||||||
<damage type="rider" value="3d3+5"/>
|
<damage type="rider" value="3d3+5"/>
|
||||||
<damage type="footman" value="3d3+5"/>
|
<damage type="footman" value="3d3+5"/>
|
||||||
<modifier type="missile_target" value="2"/>
|
<modifier type="missile_target" value="2"/>
|
||||||
|
|
|
@ -1,37 +1,47 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<resources>
|
<resources>
|
||||||
<resource name="magicskillboost">
|
<resource name="magicskillboost">
|
||||||
<comment>Boost a magician's skill to level 3</comment>
|
<comment>Boost a magician's skill to level 3</comment>
|
||||||
<item notlost="yes" weight="0">
|
<item notlost="yes" weight="0">
|
||||||
<function name="use" value="usemagicboost"></function>
|
<function name="use" value="usemagicboost"></function>
|
||||||
</item>
|
</item>
|
||||||
</resource>
|
</resource>
|
||||||
<resource name="opal" appearance="gem">
|
|
||||||
<item weight="0"></item>
|
<resource name="opal" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="diamond" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="diamond" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="zaphire" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="zaphire" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="topaz" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="topaz" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="beryl" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="beryl" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="agate" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="agate" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="garnet" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="garnet" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="emerald" appearance="gem">
|
</resource>
|
||||||
<item weight="0"></item>
|
<resource name="emerald" appearance="gem">
|
||||||
</resource>
|
<item weight="0"></item>
|
||||||
<resource name="papyrus">
|
</resource>
|
||||||
<item weight="1">
|
|
||||||
</item>
|
<resource name="papyrus">
|
||||||
</resource>
|
<item weight="1"/>
|
||||||
|
</resource>
|
||||||
|
|
||||||
|
<resource name="apple">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
|
||||||
|
<resource name="nut">
|
||||||
|
<item weight="0"/>
|
||||||
|
</resource>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue