From c2890173d04269699e6714c891081ae609bc6851 Mon Sep 17 00:00:00 2001 From: expwnent Date: Mon, 30 Jun 2014 04:07:33 -0400 Subject: [PATCH] invasion-now is redundant with force, so I removed it. --- scripts/modtools/invasion-now.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 scripts/modtools/invasion-now.lua diff --git a/scripts/modtools/invasion-now.lua b/scripts/modtools/invasion-now.lua deleted file mode 100644 index 6328120a9..000000000 --- a/scripts/modtools/invasion-now.lua +++ /dev/null @@ -1,29 +0,0 @@ --- invasion-now civName start end : schedules an invasion in the near future, or several - -args = {...} -civName = args[1] - -if ( civName ~= nil ) then - --find the civ with that name - evilEntity = nil; - for _,candidate in ipairs(df.global.world.entities.all) do - if candidate.entity_raw.code == civName then - evilEntity = candidate - break - end - end - if ( evilEntity == nil ) then - do return end - end - time = tonumber(args[2]) or 1 - time2 = tonumber(args[3]) or time - for i = time,time2 do - df.global.timed_events:insert('#',{ - new = df.timed_event, - type = df.timed_event_type.CivAttack, - season = df.global.cur_season, - season_ticks = df.global.cur_season_tick+i, - entity = evilEntity - }) - end -end