forked from github/server
- Kleine Fixes
This commit is contained in:
parent
9b2d05caf8
commit
62a97407af
|
@ -240,7 +240,7 @@ expandorders(region * r, request * requests)
|
||||||
}
|
}
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if SKILLPOINTS == 0
|
||||||
static void
|
static void
|
||||||
change_level(unit * u, skill_t sk, int bylevel)
|
change_level(unit * u, skill_t sk, int bylevel)
|
||||||
{
|
{
|
||||||
|
@ -252,6 +252,7 @@ change_level(unit * u, skill_t sk, int bylevel)
|
||||||
sv->learning = 0;
|
sv->learning = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
expandrecruit(region * r, request * recruitorders)
|
expandrecruit(region * r, request * recruitorders)
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
#define HUNGER_DISABLES_LONGORDERS 1
|
#define HUNGER_DISABLES_LONGORDERS 1
|
||||||
#define REDUCED_PEASANTGROWTH 0
|
#define REDUCED_PEASANTGROWTH 0
|
||||||
#define RACE_ADJUSTMENTS 1
|
#define RACE_ADJUSTMENTS 1
|
||||||
|
|
||||||
#define TEACHDIFFERENCE 1
|
#define TEACHDIFFERENCE 1
|
||||||
|
|
||||||
#define PEASANT_ADJUSTMENT 1
|
#define PEASANT_ADJUSTMENT 1
|
||||||
|
#define SKILLPOINTS 1
|
||||||
|
|
||||||
#define SKILLPOINTS 0
|
|
||||||
|
|
|
@ -286,13 +286,14 @@ SeedPartei(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
level(int days)
|
days2level(int days)
|
||||||
{
|
{
|
||||||
int l = 0;
|
int l = 0;
|
||||||
while (level_days(l)<=days) ++l;
|
while (level_days(l)<=days) ++l;
|
||||||
return l-1;
|
return l-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SKILLPOINTS == 0
|
||||||
static void
|
static void
|
||||||
change_level(unit * u, skill_t sk, int bylevel)
|
change_level(unit * u, skill_t sk, int bylevel)
|
||||||
{
|
{
|
||||||
|
@ -304,11 +305,12 @@ change_level(unit * u, skill_t sk, int bylevel)
|
||||||
sv->learning = 0;
|
sv->learning = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
give_latestart_bonus(region *r, unit *u, int b)
|
give_latestart_bonus(region *r, unit *u, int b)
|
||||||
{
|
{
|
||||||
int bsk = level(b*30);
|
int bsk = days2level(b*30);
|
||||||
change_level(u, SK_OBSERVATION, bsk);
|
change_level(u, SK_OBSERVATION, bsk);
|
||||||
change_money(u, 200*b);
|
change_money(u, 200*b);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue