use game_events.add in on_event.lua
previously on_event.lua and game_events.add had separate priority lists, so that independent of the priority parameter (which both game_events.add and on_event.lua now support) on_event.lua events were always executed first.
The set_undoable(true) call is there to match the previous behavior of on_event.lua where events implemented via on_event were undoable by default.
The higher default priority of 0.5 is there to match the previous behavior of on_event.lua where events implemented via on_event.lua were always run before wml events.
selected schedule will write to utils/schedule.cfg on scenario save
HOTKEY_EDITOR_CUSTOM_TODS is disabled unless user loads scenario
custom_tod:Preview button and associated callback added.
editor:translatable attributes now written with leading underscore
editor:support for multiple custom time schedules
Fixes#2919.
The severities would always override the previous one, in this order: error < warning < info < debug < none.
This commit changes this behavior so the directives are applied in the order they appear in the command line. Additionally, it is now possible to specify the same log severity multiple times.
previously it needed multiple calls to remove multiple types of modifications (which could be slow since each call involves a full rebuild of the unit).
It doesn't really make sense that the code sometimes uses the lua variable enemy_power and sometimes
the wml variable. I think the original intent was to make it always use the lua variable but then it was noticed that the lua varialbe is not available in the first scenario
assert() is not a good way to handle incorrect user input,
It is a debugging tool that should only be used for
conditions that the program guarantees to be true
(unless there a is a bug in the c++ code).
This avoids warnings from xgettext, which considers `R"""..."""` to be
sufficiently unusual that it doesn't have support for it. This version
uses an empty d-char-sequence, as the only string which needed a longer
delimiter was removed in 10997c39a3d559d699143f67e9ede7947e2193b3.
* fix raven SE sprite wings
* revisions to fire ant sprites to make more distinct from each other
* fix flame positioning
* minor soldier ant sprite update
* add IPF arg to MISSILE_FRAME_FIRE_BREATH for use in fire ants
* update copyrights.csv
The required number is already in a WML variable, herbs_needed. However, the
string is used in an `[objective]` tag, which means we're not necessarily in
an ActionWML block when it's shown, and thus can't use the Lua API to look up
plural strings. Instead, brute force it by making 6 separate strings.
Also, use the mainline `ALTERNATIVE_OBJECTIVE_CAPTION` macro instead
of a campaign-specific translatable string.
* S04b start-of-scenario saves since 1.17.21 will be broken
* S03 mid-scenario saves since 1.17.21 will show a warning,
and players will only be able to go west
* Saves from earlier versions are already broken by the campaign rewrite
The changed function is only called when using --preprocess, but calls itself
recursively. This moves the filename filter to be around the recursive call,
thus skipping the check for the top-level call.