forked from github/server
XML Option hinzugefügt
Das Segeln nur 1 Skill Level verliert ist Default und somit an.
This commit is contained in:
parent
9e5e7a3e52
commit
c937f59536
|
@ -1280,12 +1280,11 @@ static int att_modification(const unit * u, skill_t sk)
|
||||||
return (int)result;
|
return (int)result;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int get_modifier(const unit * u, skill_t sk, int level, const region * r, bool noitem)
|
||||||
get_modifier(const unit * u, skill_t sk, int level, const region * r,
|
|
||||||
bool noitem)
|
|
||||||
{
|
{
|
||||||
int bskill = level;
|
int bskill = level;
|
||||||
int skill = bskill;
|
int skill = bskill;
|
||||||
|
int hunger_red_skill = -1;
|
||||||
|
|
||||||
if (r && sk == SK_STEALTH) {
|
if (r && sk == SK_STEALTH) {
|
||||||
plane *pl = rplane(r);
|
plane *pl = rplane(r);
|
||||||
|
@ -1302,16 +1301,18 @@ bool noitem)
|
||||||
}
|
}
|
||||||
skill = skillmod(u->attribs, u, r, sk, skill, SMF_ALWAYS);
|
skill = skillmod(u->attribs, u, r, sk, skill, SMF_ALWAYS);
|
||||||
|
|
||||||
#ifdef HUNGER_REDUCES_SKILL
|
if (hunger_red_skill == -1) {
|
||||||
if (fval(u, UFL_HUNGER)) {
|
hunger_red_skill = get_param_int(global.parameters, "rules.hunger.reduces_skill", 2);
|
||||||
if (sk == SK_SAILING && skill > 2) {
|
}
|
||||||
|
|
||||||
|
if (fval(u, UFL_HUNGER) && hunger_red_skill) {
|
||||||
|
if (sk == SK_SAILING && skill > 2 && hunger_red_skill == 2) {
|
||||||
skill = skill - 1;
|
skill = skill - 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skill = skill / 2;
|
skill = skill / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return skill - bskill;
|
return skill - bskill;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,6 @@
|
||||||
#define BATTLE_KILLS_PEASANTS 20
|
#define BATTLE_KILLS_PEASANTS 20
|
||||||
#define PEASANTLUCK 10
|
#define PEASANTLUCK 10
|
||||||
|
|
||||||
#define HUNGER_REDUCES_SKILL /* Hunger reduziert den Talentwert
|
|
||||||
auf die Hälfte */
|
|
||||||
|
|
||||||
#define ASTRAL_ITEM_RESTRICTIONS /* keine grossen dinge im astralraum */
|
#define ASTRAL_ITEM_RESTRICTIONS /* keine grossen dinge im astralraum */
|
||||||
#define NEW_DAEMONHUNGER_RULE
|
#define NEW_DAEMONHUNGER_RULE
|
||||||
#define NEW_COMBATSKILLS_RULE
|
#define NEW_COMBATSKILLS_RULE
|
||||||
|
|
Loading…
Reference in New Issue