mattsc
a0decde7b9
Lua code: replace deprecated wesnoth.get_all_vars() calls
...
(cherry-picked from commit 64f7ad2560
)
2018-10-07 03:21:08 +00:00
mattsc
0e017d9f7c
Lua code: replace deprecated wesnoth.set_variable() calls
...
(cherry-picked from commit ce7faae4f4
)
2018-10-07 03:21:07 +00:00
mattsc
76ec65102c
Prevent definition of wml.variables to cause deprecation warnings
...
(cherry-picked from commit 0f157bff27
)
2018-10-07 03:21:07 +00:00
mattsc
05d5afa6a9
Lua code: replace deprecated wesnoth.get_variable() calls
...
(cherry-picked from commit f1764d182f
)
2018-10-07 03:21:06 +00:00
mattsc
448a20779f
Lua code: replace deprecated wesnoth.tovconfig() calls
...
(cherry-picked from commit 138107c8f6
)
2018-10-07 03:21:06 +00:00
mattsc
d1c504c9b3
Lua random map generator: fix off-by-one error in flip transforms
...
Among other things, this gave HttT S17 (Sceptre of Fire) a 50% chance
of crashing at scenario start.
(cherry-picked from commit 7d0d9e19a5
)
2018-10-07 03:20:56 +00:00
Celtic Minstrel
131019c18b
Support male_voice and female_voice in [message]
...
(cherry-picked from commit 07e465e57b
)
2018-10-07 03:20:00 +00:00
Jyrki Vesterinen
d75a752c06
[heal_unit]: ensure that heal amount is an integer
...
(cherry-picked from commit 76ed49a45f
)
2018-10-07 03:19:22 +00:00
Jyrki Vesterinen
167ee61d34
Revert "Display amount healed as an integer in [heal_unit]"
...
This reverts commit 0294bd81b2
.
Changing display is unnecessary when the healed amount itself is forced
to be an integer (next commit).
(cherry-picked from commit f2284e2e79
)
2018-10-07 03:19:22 +00:00
Celtic Minstrel
017c3ca9cf
Display amount healed as an integer in [heal_unit]
...
(cherry-picked from commit 0294bd81b2
)
2018-10-07 03:19:21 +00:00
Celtic Minstrel
48123469bc
Support location_id in [recall] and [unstore_unit]
...
(cherry-picked from commit ecc8785edb
)
2018-10-07 03:19:20 +00:00
Celtic Minstrel
3735b9c4f2
Add [move_unit]clear_shroud= as an attempt to clear shroud as the unit moves (untested)
...
(cherry-picked from commit b062b19e10
)
2018-10-07 03:19:06 +00:00
Celtic Minstrel
c5b5bdda70
Allow [move_unit]dir= to perform relative movements
...
(cherry-picked from commit 68b33cf6bd
)
2018-10-07 03:19:06 +00:00
Celtic Minstrel
4ce00c6b6c
Allow [move_unit]to_location to take a list of waypoints
...
(cherry-picked from commit 622db9d08b
)
2018-10-07 03:19:06 +00:00
gfgtdf
59cc2448dc
fix [message] side_for= not working for the last side.
...
fixes #2776
(cherry-picked from commit 0f756b8189
)
2018-10-07 03:18:50 +00:00
Celtic Minstrel
5e4b5a56b2
Support location_id in [teleport]
...
(cherry-picked from commit fed46ec45f
)
2018-10-07 03:18:45 +00:00
Celtic Minstrel
83a6243fb9
Fix incorrect error message when encountering an unknown persistent tag
...
(cherry-picked from commit d2a8c5bb32
)
2018-10-07 03:18:45 +00:00
Celtic Minstrel
b1e96b08dd
Support facing in [role][auto_recall]
...
(cherry-picked from commit ea0bcec92f
)
2018-10-07 03:18:40 +00:00
Celtic Minstrel
b35a7f7352
Support root=cube and root=int in [set_variable]
...
(cherry-picked from commit 7a3d6f958a
)
2018-10-07 03:18:39 +00:00
Celtic Minstrel
12ada04b8f
Use wesnoth.format instead of string.format for translateable strings in [objectives]
...
(cherry-picked from commit 15ae9fcb0c
)
2018-10-07 03:18:39 +00:00
Celtic Minstrel
b5b87ef373
Nicer handling of some Pango formatting attributes in [message]
...
(cherry-picked from commit c835e5b7e6
)
2018-10-07 03:18:39 +00:00
Celtic Minstrel
05a45b8cd1
Handle speaker=id directly in [message] instead of relying on SUF
...
(cherry-picked from commit 2bd2a8b1b6
)
2018-10-07 03:18:39 +00:00
Celtic Minstrel
52d3b7bb6a
Support [set_variable]round=trunc
...
(cherry-picked from commit beb5dc75aa
)
2018-10-07 03:18:38 +00:00
Vasya
fa71ab4be0
Lua API: simplify functional.reduce ( #2788 )
...
simplify code and remove `indentity or 0` VS `indentity` inconsistency.
(cherry-picked from commit 2b8782923a
)
2018-10-07 03:18:38 +00:00
Celtic Minstrel
0d1df0f2d7
Fix unintended change to the semantics of [modify_side]income=
...
(cherry-picked from commit 79bc18fe95
)
2018-10-07 03:18:37 +00:00
Celtic Minstrel
d72612443f
Allow percentages in [random_placement]num_items=
...
(cherry-picked from commit 229d2f0483
)
2018-10-07 03:18:19 +00:00
Celtic Minstrel
0131631220
Allow WFL for [random_placement]num_items=
...
(cherry-picked from commit e4a2c14177
)
2018-10-07 03:18:18 +00:00
Celtic Minstrel
c023f7b222
Fix typo in 1dd411a84e
...
(cherry-picked from commit 4427ee1936
)
2018-10-07 03:18:18 +00:00
Celtic Minstrel
02b6987158
Support to_location in [move_unit]
...
(cherry-picked from commit 1dd411a84e
)
2018-10-07 03:18:13 +00:00
Celtic Minstrel
d2a465a126
Support formula= in [variable] ConditionalWML
...
(cherry-picked from commit 4e52d62963
)
2018-10-07 03:18:12 +00:00
Celtic Minstrel
5008c72a22
Fixup wml.all_variables
2018-03-18 01:38:39 -04:00
Celtic Minstrel
8d74b72031
fixup! Fix missing return in on_event()
2018-03-17 17:21:20 -04:00
Celtic Minstrel
a314876bf2
Use new persistent tags interface for [object] [objectives] [item]
2018-03-17 17:16:23 -04:00
Celtic Minstrel
ddcbb4cb50
Add a more convenient way of registering custom saved game data
2018-03-17 17:16:22 -04:00
Celtic Minstrel
68d545c3be
Add a couple more WML utility functions
2018-03-17 16:48:06 -04:00
Celtic Minstrel
d4e08359dd
Fix missing return in on_event()
2018-03-17 16:48:04 -04:00
Celtic Minstrel
e776635023
Clear up redundancies in helper compatibility and deprecate the array functions
2018-03-17 16:48:03 -04:00
Celtic Minstrel
4b08a40181
Deprecate wesnoth.set_music
2018-03-17 16:48:02 -04:00
Celtic Minstrel
6e4d09d2a5
Bump up a couple of deprecation levels at @vultraz's request
2018-03-17 16:48:01 -04:00
Celtic Minstrel
08ec9017b5
Lua API: Some tweaks of the experimental wml module
2018-03-17 16:48:00 -04:00
Celtic Minstrel
23aac4f72f
Cleanup of fef953a48e
...
- Fix the rabbit AI
- Enable invoke_synced_command to also call (some) built-in commands
and give an error message in the case of an unknown command
- Remove some unnecessary implementation details
2018-03-17 16:48:00 -04:00
Charles Dang
134353f863
Further cleanup of deprecated Lua API usecases (inc. ones from fef953a
)
...
[ci skip]
2018-03-17 00:41:32 +11:00
gfgtdf
fef953a48e
remove ai.synced_command
...
fixes #1649 . ai.synced_command could easily be used to implement all types of
undeteced cheats so it was removed. As a replacement this commit adds a
[custom_command] synced command that just calls
wesnoth.game_events.on_synced_command which calls a lua handler that
must first be set.
2018-03-16 13:43:05 +01:00
Charles Dang
0103959c36
Cleaned up deprecated API usage in core Lua
...
[ci skip]
2018-03-13 16:55:36 +11:00
Charles Dang
471c9e876a
Addressed a large chunk of the whitespace issues from #2613
...
[ci skip]
2018-03-09 11:37:00 +11:00
Charles Dang
3489dac642
[heal_unit]: don't play healed animation if no healing is done
...
[ci skip]
Addresses #2530 . Not closing that though, since the behavior might still be tweaked.
The healer will still play their own animation, if applicable (behavior option 2 in
the bug report).
2018-03-05 15:44:42 +11:00
Celtic Minstrel
f4b031b7ac
fixup [deprecated_messag]
2018-03-04 22:03:17 -05:00
Celtic Minstrel
aa0a3bebd1
Add suffix= and prefix= operations to [set_variable]
2018-03-04 22:03:16 -05:00
Celtic Minstrel
1e2512a672
Honour the regular deprecation message settings for WML deprecation messages
2018-03-04 21:21:33 -05:00
Celtic Minstrel
5fc9d8d173
Use new deprecated_message() function wherever possible (C++)
...
This also covers handling of legacy DescriptionWML for [set_menu_item],
and tweaks its handling in the other cases (mainly [multiplayer_side]).
I added the next_dev_version constant intending to use it, but then
decided not to do so; however I left it in in case someone finds it useful.
2018-03-04 21:21:33 -05:00