2015-11-09 19:21:00 -07:00
|
|
|
# Allow arena creature spawn after a mode change
|
2014-01-03 17:55:48 -07:00
|
|
|
|
|
|
|
df.world.arena_spawn.race.clear
|
|
|
|
df.world.arena_spawn.caste.clear
|
|
|
|
|
|
|
|
df.world.raws.creatures.all.length.times { |r_idx|
|
2015-02-14 20:53:06 -07:00
|
|
|
df.world.raws.creatures.all[r_idx].caste.length.times { |c_idx|
|
|
|
|
df.world.arena_spawn.race << r_idx
|
|
|
|
df.world.arena_spawn.caste << c_idx
|
|
|
|
}
|
2014-01-03 17:55:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
df.world.arena_spawn.creature_cnt[df.world.arena_spawn.race.length-1] = 0
|
|
|
|
|
|
|
|
puts <<EOS
|
2015-11-04 05:14:10 -07:00
|
|
|
=begin
|
2014-01-03 17:55:48 -07:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
devel/spawn-unit-helper
|
|
|
|
=======================
|
|
|
|
Setup stuff to allow arena creature spawn after a mode change.
|
2014-01-03 17:55:48 -07:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
With Arena spawn data initialized:
|
2014-01-03 17:55:48 -07:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
- enter the :kbd:`k` menu and change mode using
|
|
|
|
``rb_eval df.gametype = :DWARF_ARENA``
|
2014-01-03 17:55:48 -07:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
- spawn creatures (:kbd:`c` ingame)
|
2014-01-03 17:55:48 -07:00
|
|
|
|
2015-11-04 05:14:10 -07:00
|
|
|
- revert to game mode using ``rb_eval df.gametype = #{df.gametype.inspect}``
|
|
|
|
|
|
|
|
- To convert spawned creatures to livestock, select each one with
|
|
|
|
the :kbd:`v` menu, and enter ``rb_eval df.unit_find.civ_id = df.ui.civ_id``
|
|
|
|
|
|
|
|
=end
|
2014-01-03 17:55:48 -07:00
|
|
|
EOS
|