73520 Commits

Author SHA1 Message Date
Celtic Minstrel
3e79b3bde8 Lua API reorganization: GUI module deprecations 2018-11-15 21:06:55 -05:00
Celtic Minstrel
3ec9ce4b60 Lua API reorganization: GUI module 2018-11-15 21:06:55 -05:00
Celtic Minstrel
55a6c16810 Lua API reorganization: interface module deprecations 2018-11-15 21:06:55 -05:00
Celtic Minstrel
e3e80b4a99 Lua API reorganization: interface module 2018-11-15 21:06:55 -05:00
Martin Hrubý (hrubymar10)
88550b8592
Add data/schema into macOS packages 2018-11-15 15:56:47 +01:00
mattsc
8c8cafaa70 Deprecate EXPERIMENTAL_AI macro 2018-11-15 06:46:41 -08:00
Martin Hrubý (hrubymar10)
fee7f00bd2
Fix Xcode project 2018-11-15 09:24:08 +01:00
Severin Glöckner
eb1ebe1cd8 Help: cut portraits of monsters, bats and zombies
This will less often wrap the text of the descriptions.

For many of the zombies is more possible, but it has been taken care to have the
linebreak for 'required xp' and in the variation list the same on all their pages.

The reason for the 319px height on some of them is:
- It's still taking enough space to have 'required xp' on a new line.
- It does for both the WC and Soulless not interfere with the description text.
- The swimmer can't be smaller than 319px without cutting any non-tranaparent
  pixel. To have more structure the goblin/dwarf/dog use the same.

[ci skip]
2018-11-14 23:45:45 +01:00
Severin Glöckner
6b744f1ca0 German translation: small changes
- spelling fixes
- adjust category for raceless units
- renaming »Volk« to »Spezies« at one more place
  (originally done to better fit with some other races, like bats, gryphons,
   undead, mechanical,…)
- [ci skip]
2018-11-14 20:15:01 +01:00
josteph
e642223017 wmlxgettext: Fix crash if no *.cfg file is found
fixes #3719
[ci skip]
2018-11-14 20:14:44 +01:00
loonycyborg
c4e9c389a6 wesnothd: delay sending diff with user moving to game they created
until game_id is valid from client's pov to prevent an error message
from it.
2018-11-14 15:33:21 +03:00
loonycyborg
921203803e wesnothd: remove redundant assert 2018-11-14 14:47:18 +03:00
Celtic Minstrel
22d8592164 Document schema validation short options and make --validate imply --wconsole on Windows 2018-11-13 23:17:17 -05:00
Celtic Minstrel
f1fd2312f7 Add type annotations for the new schema command-line arguments 2018-11-13 22:46:17 -05:00
josteph
815ded47dd Themes: Fix unit status icons not showing
When [unit_status] shows two or more images, only the first showed and
there was no indication that there were further statuses. Now an
ellipsis is shown and the tooltip contains the information about the
second and further statuses.

Fixes #3197
2018-11-13 22:16:07 +00:00
Jyrki Vesterinen
ce3f6ccecc Fix build with -Werror=unused-private-field 2018-11-13 19:55:30 +02:00
mattsc
59397a40b5 ExpAI recruiting: fix AI crash for unit type with unknown race 2018-11-13 06:53:20 -08:00
gfgtdf
20b36d2713 variables in lua mapgen, fixes #3657
In campaigns The lua mapgenerator code has now access to the
variables from the last scenario via wesnoth.get_variable.
2018-11-13 14:42:05 +01:00
gfgtdf
05a397ddde use std::move 2018-11-13 13:38:59 +01:00
gfgtdf
01581d0218 small team.cpp cleanup 2018-11-13 13:28:29 +01:00
Jyrki Vesterinen
7d21a844ad Second attemptm to fix build with Apple Clang 2018-11-13 07:31:27 +02:00
Jyrki Vesterinen
b789c07e33 Attempted build fix for Apple Clang 2018-11-12 22:49:39 +02:00
Jyrki Vesterinen
8ca0534b28 Visual Studio project: move schema code to wesnothlib
Like it already was in source_lists.
2018-11-12 22:42:28 +02:00
Jyrki Vesterinen
a5ef8d040c Fix build with GCC and Clang
Fixes #3712.
2018-11-12 19:47:42 +02:00
josteph
711434d571 wmlparser3: Fix [+foo] without preceding [foo] in toplevel 2018-11-12 02:53:52 +00:00
Celtic Minstrel
b94ccf9020 Rewrite helper.modify_unit to not use a WML variable 2018-11-11 20:03:05 -05:00
Celtic Minstrel
9885932011 Use wml.tag in helper.get_user_choice 2018-11-11 20:03:05 -05:00
Celtic Minstrel
40bf04ec8e Rewrite helper.move_unit_fake to not use a WML variable 2018-11-11 19:51:29 -05:00
Celtic Minstrel
d732ef00c2 Lua API: Allow specifying a schema for wml.parse()
Closes #3696
2018-11-11 19:43:52 -05:00
Celtic Minstrel
3016d92811 Lua API: Add wml.clone() 2018-11-11 19:37:49 -05:00
Celtic Minstrel
e692294532 Lua API: Make wml.tostring a lossless conversion
This means that wml.parse(wml.tostring(cfg)) now returns a perfect clone of the original config.

Addresses #3696
2018-11-11 19:33:35 -05:00
Celtic Minstrel
45689305eb fixup -Wreorder 2018-11-11 18:52:31 -05:00
Celtic Minstrel
20e85aa417 Lua API: Add wml.load and wml.parse functions 2018-11-11 16:01:08 -05:00
Celtic Minstrel
6ed57cdc70 Fix crash when invoking Lua console from the main menu 2018-11-11 15:59:09 -05:00
Celtic Minstrel
6c54451e2a fixup 2018-11-11 15:58:58 -05:00
Celtic Minstrel
2ee2f4d33f Fix various compiler warnings/errors from Travis 2018-11-11 15:32:18 -05:00
Celtic Minstrel
639787e1c9 Merge pull request #2562 from wesnoth/schema 2018-11-11 13:52:19 -05:00
ProditorMagnus
e3da41335e fix modify_unit split_to_array function 2018-11-11 17:30:28 +01:00
mattsc
e8ccf2a4de Update changelog with AI changes 2018-11-10 20:13:30 -08:00
gfgtdf
e036cadf0b small connect_engine cleanup
The only attributes that were changed by side_engine::new_config() and
not in the attributes_to_trim list were "user_description" and "name" so
it is cleaner to just explicitly change them than to blacklist
everything else and do a merge.

Also with this it no longer merges subtags, which in particular fixes
2018-11-11 02:18:03 +01:00
gfgtdf
0aaf959260 fix #3699 village colors after side.color setter 2018-11-11 02:16:46 +01:00
gfgtdf
ed49d27511 add wesnoth.set_dialog_tooltip fixes #3692 2018-11-11 02:16:46 +01:00
Severin Glöckner
fb8770a3d9 German translation: spelling fix
[ci skip]
2018-11-10 22:37:04 +01:00
gfgtdf
3bfe5c2041 fix movement loss after expire_modification
previously when the unit had a movement effect, expire_modifications
could remove movement via the `movement_ = max_movement_;` line in
the movement effect implementation.
2018-11-10 22:29:35 +01:00
gfgtdf
66a282a96b do not write unchanged unit attributes
This should make savefiles smaller. Note that this does not effect all
games since some wml codes will disable this optimisation.
2018-11-10 22:27:02 +01:00
gfgtdf
3c63b1e6de optimize modify_unit
now modify_unit no longer causes the full rebuild of the unit unless it
is really needed, this is not only faster, it also prepares a future
optimisation in reducing the units size in savegame files.
2018-11-10 22:26:59 +01:00
newfrenchy83
dbaf402393 Revert #3669 (#3698)
We are reverting the change because it causes an error to be logged.
2018-11-10 15:36:01 +02:00
Jyrki Vesterinen
386c19f0cf Mouse events: remove owning reference to the attacking unit
Follow-up to commit f8bd38b1. Fixes the halo remaining in the corner case
@newfrenchy83 linked in a comment.
2018-11-10 10:47:12 +02:00
mattsc
30e1fd1742 Bottleneck Micro AI: simplify a conditional
Use elseif and no need to check experience again, that is already done earlier.
2018-11-09 06:57:07 -08:00
mattsc
bc956b3e7f Lua AIs: fix experience for killing level 0 units 2018-11-09 06:52:08 -08:00