- spawning new dragons and undead is now optional (lua function)

- battle-effect on peasants is configurable (by XML param)
This commit is contained in:
Enno Rehling 2005-11-26 11:03:44 +00:00
parent 531115b392
commit 402fbb24e5
6 changed files with 27 additions and 2 deletions

View File

@ -292,8 +292,10 @@ bind_eressea(lua_State * L)
/* scripted monsters */
def("plan_monsters", &lua_planmonsters),
def("spawn_braineaters", &spawn_braineaters),
def("set_brain", &race_setscript),
def("spawn_braineaters", &spawn_braineaters),
def("spawn_undead", &spawn_undead),
def("spawn_dragons", &spawn_dragons),
/* map making */
def("autoseed", lua_autoseed),

View File

@ -96,6 +96,8 @@
<param name="NewbieImmunity" value="4"/>
<param name="hunger.long" value="1"/>
<param name="rules.check_overload" value="0"/>
<param name="battle.populationdamage" value="0"/>
<param name="functions.wage" value="get_wage"/>
<param name="functions.maintenance" value="get_maintenance"/>
</game>

View File

@ -43,10 +43,19 @@ function process(orders)
-- run the turn:
read_orders(orders)
-- create new monsters:
spawn_dragons()
spawn_undead()
spawn_braineaters(0.25)
plan_monsters()
process_orders()
-- post-turn updates:
update_guards()
update_scores()
-- use newfactions file to place out new players
autoseed(basepath .. "/newfactions", true)

View File

@ -78,9 +78,15 @@ function process(orders)
end
run_scripts()
-- create new monsters:
spawn_dragons()
spawn_undead()
spawn_braineaters(0.25)
plan_monsters()
process_orders()
-- post-turn updates:
update_guards()
update_scores()

View File

@ -58,7 +58,6 @@ function process(orders)
-- run the turn:
read_orders(orders)
-- DISABLED: plan_monsters()
process_orders()
update_owners()

View File

@ -15,9 +15,16 @@ function process(orders)
sphinx_weekly()
-- run the turn:
-- create new monsters:
spawn_dragons()
spawn_undead()
-- (no more braineaters) spawn_braineaters(0.25)
plan_monsters()
process_orders()
-- post-turn updates:
update_guards()
update_scores()