dfhack/scripts/migrants-now.lua

17 lines
479 B
Lua

-- Force a migrant wave (only after hardcoded waves)
2015-10-27 17:18:44 -06:00
--[[=begin
migrants-now
============
Forces an immediate migrant wave. Only works after migrants have
2015-11-04 05:13:52 -07:00
arrived naturally. Equivalent to `modtools/force` ``-eventType migrants``
2015-10-27 17:18:44 -06:00
=end]]
2015-11-04 05:13:52 -07:00
df.global.timed_events:insert('#',{
new = true,
type = df.timed_event_type.Migrants,
season = df.global.cur_season,
season_ticks = df.global.cur_season_tick+1,
entity = df.historical_entity.find(df.global.ui.civ_id)
})