move E3 related scripts out of main scripts folder

This commit is contained in:
Enno Rehling 2010-02-27 22:14:36 +00:00
parent 0e47409d6b
commit 3302b8032f
12 changed files with 2 additions and 95 deletions

View File

@ -27,7 +27,7 @@
</set>
<set name="new_faction">
<!-- this goes into the faction's global pool -->
<item name="adamantium" amount="1"/>
<item name="sword" amount="1"/>
</set>
</equipment>

View File

@ -38,9 +38,6 @@
<item name="stone" amount="10"/>
<item name="money" amount="5000"/>
</set>
<!--set name="new_faction">
<item name="adamantium" amount="1"/>
</set-->
</equipment>
<xi:include href="names-undead.xml"/>

View File

@ -1,7 +1,7 @@
require "multis"
function process(orders)
local confirmed_multis = { "odin" }
local confirmed_multis = { }
local suspected_multis = { }
if open_game(get_turn())~=0 then

View File

@ -1,58 +0,0 @@
function process(orders)
-- initialize starting equipment for new players
if open_game==nil then
print("did you load default.lua?")
return -1
end
if open_game(get_turn())~=0 then
print("could not read game")
return -1
end
init_summary()
-- run the turn:
if read_orders(orders) ~= 0 then
print("could not read " .. orders)
return -1
end
plan_monsters()
local nmrs = get_nmrs(1)
-- nmrs = 0
maxnmrs = maxnmrs or 80
if nmrs >= maxnmrs then
print("Shit. More than " .. maxnmrs .. " factions with 1 NMR (" .. nmrs .. ")")
write_summary()
return -1
end
print (nmrs .. " Factions with 1 NMR")
process_orders()
-- create new monsters:
spawn_dragons()
spawn_undead()
spawn_braineaters(0.25)
spawn_ents()
-- post-turn updates:
update_xmas2006()
update_embassies()
update_guards()
update_scores()
change_locales()
-- use newfactions file to place out new players
autoseed(config.basepath .. "/newfactions", false)
write_files(locales)
file = "" .. get_turn() .. ".dat"
if write_game(file, "binary")~=0 then
print("could not write game")
return -1
end
end

View File

@ -1,32 +0,0 @@
swapx = 0
swapy = 0
function swap_region(r, tr)
local sr = get_region(swapx, swapy)
while sr~=nil do
swapx = math.random(1000)
swapy = math.random(1000)
sr = get_region(swapx, swapy)
end
local tx = tr.x
local ty = tr.y
local x = r.x
local y = r.y
tr:move(swapx, swapy)
r:move(tx, ty)
tr:move(x, y)
end
function move_selection(x, y)
for r in gmtool.get_selection() do
local tx = r.x+x
local ty = r.y+y
local tr = get_region(tx, ty)
if tr~=nil then
swap_region(r, tr)
else
r:move(tx, ty)
end
end
end