forked from github/server
- spawning new dragons and undead is now optional (lua function)
- battle-effect on peasants is configurable (by XML param)
This commit is contained in:
parent
531115b392
commit
402fbb24e5
|
@ -292,8 +292,10 @@ bind_eressea(lua_State * L)
|
||||||
|
|
||||||
/* scripted monsters */
|
/* scripted monsters */
|
||||||
def("plan_monsters", &lua_planmonsters),
|
def("plan_monsters", &lua_planmonsters),
|
||||||
def("spawn_braineaters", &spawn_braineaters),
|
|
||||||
def("set_brain", &race_setscript),
|
def("set_brain", &race_setscript),
|
||||||
|
def("spawn_braineaters", &spawn_braineaters),
|
||||||
|
def("spawn_undead", &spawn_undead),
|
||||||
|
def("spawn_dragons", &spawn_dragons),
|
||||||
|
|
||||||
/* map making */
|
/* map making */
|
||||||
def("autoseed", lua_autoseed),
|
def("autoseed", lua_autoseed),
|
||||||
|
|
|
@ -96,6 +96,8 @@
|
||||||
<param name="NewbieImmunity" value="4"/>
|
<param name="NewbieImmunity" value="4"/>
|
||||||
<param name="hunger.long" value="1"/>
|
<param name="hunger.long" value="1"/>
|
||||||
<param name="rules.check_overload" value="0"/>
|
<param name="rules.check_overload" value="0"/>
|
||||||
|
<param name="battle.populationdamage" value="0"/>
|
||||||
|
|
||||||
<param name="functions.wage" value="get_wage"/>
|
<param name="functions.wage" value="get_wage"/>
|
||||||
<param name="functions.maintenance" value="get_maintenance"/>
|
<param name="functions.maintenance" value="get_maintenance"/>
|
||||||
</game>
|
</game>
|
||||||
|
|
|
@ -43,10 +43,19 @@ function process(orders)
|
||||||
-- run the turn:
|
-- run the turn:
|
||||||
read_orders(orders)
|
read_orders(orders)
|
||||||
|
|
||||||
|
-- create new monsters:
|
||||||
|
spawn_dragons()
|
||||||
|
spawn_undead()
|
||||||
spawn_braineaters(0.25)
|
spawn_braineaters(0.25)
|
||||||
|
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
|
-- post-turn updates:
|
||||||
|
update_guards()
|
||||||
|
update_scores()
|
||||||
|
|
||||||
|
|
||||||
-- use newfactions file to place out new players
|
-- use newfactions file to place out new players
|
||||||
autoseed(basepath .. "/newfactions", true)
|
autoseed(basepath .. "/newfactions", true)
|
||||||
|
|
||||||
|
|
|
@ -78,9 +78,15 @@ function process(orders)
|
||||||
end
|
end
|
||||||
run_scripts()
|
run_scripts()
|
||||||
|
|
||||||
|
-- create new monsters:
|
||||||
|
spawn_dragons()
|
||||||
|
spawn_undead()
|
||||||
spawn_braineaters(0.25)
|
spawn_braineaters(0.25)
|
||||||
|
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
|
-- post-turn updates:
|
||||||
update_guards()
|
update_guards()
|
||||||
update_scores()
|
update_scores()
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@ function process(orders)
|
||||||
-- run the turn:
|
-- run the turn:
|
||||||
read_orders(orders)
|
read_orders(orders)
|
||||||
|
|
||||||
-- DISABLED: plan_monsters()
|
|
||||||
process_orders()
|
process_orders()
|
||||||
update_owners()
|
update_owners()
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,16 @@ function process(orders)
|
||||||
sphinx_weekly()
|
sphinx_weekly()
|
||||||
|
|
||||||
-- run the turn:
|
-- run the turn:
|
||||||
|
|
||||||
|
-- create new monsters:
|
||||||
|
spawn_dragons()
|
||||||
|
spawn_undead()
|
||||||
-- (no more braineaters) spawn_braineaters(0.25)
|
-- (no more braineaters) spawn_braineaters(0.25)
|
||||||
|
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
|
-- post-turn updates:
|
||||||
update_guards()
|
update_guards()
|
||||||
update_scores()
|
update_scores()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue