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 */
|
||||
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),
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -43,9 +43,18 @@ 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)
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ function process(orders)
|
|||
-- run the turn:
|
||||
read_orders(orders)
|
||||
|
||||
-- DISABLED: plan_monsters()
|
||||
process_orders()
|
||||
update_owners()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue