75929 Commits

Author SHA1 Message Date
Celtic Minstrel
ee40ca2146 Lua uses nil, not null. Oops! 2019-12-07 17:21:03 -05:00
nemaara
a7107f26ab Liberty S1: small touchups 2019-12-07 15:54:39 -05:00
Celtic Minstrel
d66e957e1d Fix ilua's strict mode 2019-12-07 14:48:55 -05:00
Celtic Minstrel
29e11e7914 Lua functional library: make reduce accept an operator name in place of a function, add zip 2019-12-07 13:52:49 -05:00
Steve Cotton
4e92cc46ad Fix move_unit's parsing of to_x and to_y (fixes the unit-test timeout)
Also extend the unit test to at least check the end result of comma-separated
values, as there was previously nothing testing the effect of providing more
than one value.
2019-12-07 18:41:32 +01:00
nemaara
0b89c6e4c9 DiD: decrease difficulty ratings 2019-12-06 22:10:39 -05:00
nemaara
9fbaee3be7 TSG and AToTB: change to novice level 2019-12-06 22:08:18 -05:00
nemaara
611010f634 Swap campaign ranks of Liberty and HttT 2019-12-06 21:49:20 -05:00
nemaara
447f572d90 Liberty: dialogue tweaks 2019-12-06 21:48:21 -05:00
sigurdfdragon
ae706a4b4f Changelog: Update with SotA fixes 2019-12-06 20:44:23 -05:00
sigurdfdragon
fccd30baf4 SotA: Fix special plauge attack making rats when spiders are called for 2019-12-06 20:44:23 -05:00
sigurdfdragon
3d38f7b6e2 SotA S05: Remove unneeded code and fix bug of regular WC in recruit list 2019-12-06 20:44:23 -05:00
sigurdfdragon
c6d7c94bfb SotA: Fix last breath dialog for bats firing multiple times in the campaign 2019-12-06 20:43:39 -05:00
nemaara
2a24cf0c79 DiD: remove end year 2019-12-06 04:54:36 -05:00
pentarctagon
38a49ad068
Fix case of converting a string with str(). 2019-12-05 19:36:55 -06:00
Nils Kneuper
504f138e6c updated Portuguese (Brazil) translation 2019-12-05 21:47:55 +01:00
Celtic Minstrel
30240aa7cd For consistency, rename tstr:format -> tstr:vformat, and add tstr:format as an alias to string.format
In order for the latter to work, string.format was overridden as follows (but implemented in the C API):

local old_format = string.format
function string.format(str, ...)
	if type(str) == 'userdata' and getmetatable(str) == 'translatable string' then str = tostring(str) end
	return old_format(str, ...)
end
2019-12-04 22:28:14 -05:00
Celtic Minstrel
0b433d7ca1 Implement a Lua strict mode which eliminates all deprecated things
Note: At present the only way to enable this is by editing the core.lua file to add the line "wesnoth.strict = true".
2019-12-04 21:52:47 -05:00
Nils Kneuper
cc6bb23d47 updated Portuguese (Brazil) translation 2019-12-04 20:43:08 +01:00
Nils Kneuper
dfba6484c3 updated Dutch translation 2019-12-04 20:42:01 +01:00
Nils Kneuper
16872f50df updated Ancient Greek translation 2019-12-04 20:39:27 +01:00
Celtic Minstrel
9ae3be7386 Add stringx functions for parsing ranges 2019-12-04 08:55:17 -05:00
Celtic Minstrel
7a1390adf7 Remove "wml-utils" require from files that no longer use it 2019-12-04 08:48:53 -05:00
Celtic Minstrel
f2f35cbd38 Fix broken [move_units]dir= 2019-12-04 08:46:22 -05:00
Celtic Minstrel
d9b5e3c4df Replace uses of wml_utils.split with stringx.split 2019-12-04 08:46:04 -05:00
Celtic Minstrel
31467d29d7 Deprecate wml_utils.split in favour of stringx.split 2019-12-04 08:09:51 -05:00
Celtic Minstrel
34cce96a58 Deprecate wml_utils.parenthetical_split in favour of stringx.split
There were no uses of this function in core Lua files.
2019-12-04 08:07:15 -05:00
Severin Glöckner
b32a08a6e7 HttT: change usage type of Queen
[ci skip]
2019-12-04 10:47:22 +01:00
Severin Glöckner
66d7132d01 TSG 8b: add comment and remove old code
[ci skip]
2019-12-04 10:45:31 +01:00
Celtic Minstrel
4eb043bb16 Deprecate wml_utils.trim in favour of stringx.trim and update all use cases 2019-12-04 00:53:59 -05:00
Celtic Minstrel
462538bf36 Update changelog 2019-12-04 00:50:13 -05:00
Celtic Minstrel
e81a0377b0 Update uses of moved format functions 2019-12-04 00:50:00 -05:00
Celtic Minstrel
533206674a Deprecate wesnoth.wml_matches_filter 2019-12-04 00:47:29 -05:00
Celtic Minstrel
7ee7d6d47c Lua: More stuff for the stringx module
- Move format_conjunct_list and format_disjunct_list
- Move wesnoth.format (renamed to vformat so as not to conflict with string.format); it's also available as tstr:format()
- Add stringx.trim
- The convenience wrappers of stringx.split now set the remove_empty and strip_space flags
2019-12-04 00:45:36 -05:00
Celtic Minstrel
acca00bec4 Update changelog 2019-12-02 22:54:48 -05:00
Celtic Minstrel
027be31826 Add wml.interpolate function for vconfig interpolation from a source other than the game variables
Unlike wml.tovconfig, this method works even in the plugin and map generation contexts.
2019-12-02 22:45:06 -05:00
Celtic Minstrel
86197e857b Doc comments for a bunch of the newer Lua functions 2019-12-02 22:39:34 -05:00
Celtic Minstrel
11a57e0fa7 Move helper.find_attack -> wesnoth.units.find_attack 2019-12-02 22:39:34 -05:00
Celtic Minstrel
d5c1c9734f Fix the deprecated helper.set_wml_tag_metatable using a non-existent core table 2019-12-02 22:39:34 -05:00
Elvish_Hunter
ec41359368 wmlscope: detect and analyze optional macro arguments 2019-12-02 21:23:58 +01:00
Jyrki Vesterinen
cba53cd471 Disable attempting to change floating point precision in 64-bit MSVC builds
It's not supported and causes an assertion failure on startup.
2019-12-02 19:43:33 +02:00
Earth-Cake
1e19cd5d23 Bug fix
Fix a bug regarding enemy leader leaving starting position and going with his soldiers.
2019-12-02 07:19:09 -06:00
Celtic Minstrel
732b7942bb Replace all references to deprecated functions in the helper module
(and remove the require if this meant it was no longer used)
2019-12-02 01:10:34 -05:00
Celtic Minstrel
74e004c265 Use a location set in the implementation of the item functions and WML tags 2019-12-01 22:30:31 -05:00
Celtic Minstrel
4b9f5d4485 Extend the location_set module to support set operators, custom index operators, and a tostring metamethod
Also adds set difference and symmetric difference functions, and a clone function.
2019-12-01 22:29:49 -05:00
Celtic Minstrel
9da5d4adfd fixup! Declare wesnoth.interface.remove_overlay directly instead of declaring it local and then assigning it
Missed updating the deprecation line and used the wrong new name
2019-12-01 21:50:56 -05:00
gfgtdf
f40a51c3ef remove ai advancement parameter from attack_and_advance
celmin confirmed that it is no longer needed
2019-12-02 03:41:32 +01:00
gfgtdf
7ddf61f08a don't abort advancement on invalid advancement index
this would in theory give the player
the option to postpone a unit
advancement by selecting an invalid
advancement index. Now we just use the
first advancement in case of an invalid
advancement index.
2019-12-02 03:41:32 +01:00
gfgtdf
b67579a030 ai unit advancement improvements
1) use ai unit advancement asepect also
   during [event]s fixes #4605

previously advancements of ai units
invoked by [event]s for example by
unstoring a unit with enough xp would
always do a purely random advancement even if
it happend during the ais own turn. Now the
advancemt_aspect is considered. I don't really
know how the code inside ai/ works so i just
took the easiert way to get a advancements_aspect
from the manager. In particular this leaves a
TODO comment about whether the advancemnts_aspect
of advance_unit_at (and thus of
attack_and_advance) can not be removed or not
because i don't know whether the advancement
aspect is effectively a singleton (per side)
or not.

2) support amlas in ai units_advancement_aspect
2019-12-02 03:41:32 +01:00
pentarctagon
f3ed41d728
Remove schema validation for AOI. 2019-12-01 20:06:48 -06:00