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
Severin Glöckner
d743a5b9f2
NR S7: debug mode safety
...
[ci skip]
2018-11-09 00:46:26 +01:00
Severin Glöckner
0e34455cfe
NR S7a: revert 52c22b1, add alternative fix
...
[ci skip]
2018-11-09 00:46:26 +01:00
josteph
c6b2be5ca6
wmlparser3: Parse [+foo][/foo] as append to [foo].
2018-11-08 22:57:39 +00:00
Severin Glöckner
552567dff2
Appdata: add contact e-mail address
...
This Address is not shown in the store. It's used to contact us in case of
issues or upstream changes regarding this file.
In the past it has been used for a mass email by hughsie, an developer for
appstream related things.
[ci skip]
2018-11-08 21:51:25 +01:00
Severin Glöckner
8690259355
German Translation: small change in SoF
...
[ci skip]
2018-11-08 21:39:58 +01:00
Severin Glöckner
366a802b0f
Bring German translation in sync with 1.14
...
[ci skip]
2018-11-08 21:23:11 +01:00
mattsc
e7e9a6fe45
Merge pull request #3655 from mattsc/lua_ai_changes
...
Lua AI changes
2018-11-08 07:31:58 -08:00
mattsc
23d313949d
Remove AI Controller from campaign scenarios (addresses #3668 )
...
Ideally we would replace it with a more effective and intuitive version at some point, but currently we do not know how to set up AI behavior that both makes sense and is usable in a general setting (without consisting of unit-level control).
2018-11-08 07:15:40 -08:00
DisherProject
a4d963eaf5
NR S2: Filter units by id in micro_ai
2018-11-07 15:40:55 -06:00
DisherProject
aa59d1561c
NR S13a: Improvement to the AIs
...
1) Rakshas's units will not idle around him anymore
2) Hamel will play more carefully, and his recruits will be
chosen according to the ToD (i.e. aggressive during the day,
defensive at night)
2018-11-07 15:40:55 -06:00
DisherProject
caeada5fd5
NR S7a: Store Ro'Sothian into a variable
...
... instead of killing him and creating him from scratch
every time
2018-11-07 15:40:55 -06:00
DisherProject
4c5e6bfd4c
NR: Fix ignored gender on fake units' moves
2018-11-07 15:40:55 -06:00
DisherProject
5d6d51d623
NR: Put show_if tag inside objectives
2018-11-07 15:40:55 -06:00
DisherProject
52c22b12f7
NR S7: Fix some loyal heroes costing support
...
Loyal trait seems not to work with previous implementation.
This should be also more readable
2018-11-07 15:40:55 -06:00
DisherProject
b1a436cd28
NR S6a: Give the orc leaders their own portrait
...
Just because there is more than one Orcish Warlord speaking
2018-11-07 15:40:55 -06:00
DisherProject
7ffa224234
NR S5a_01: Fix some event filters
...
1) Now Tallin shows surprise when Thera dies too
3) Only Malifor will scream when hit
Also add a redraw
2018-11-07 15:40:55 -06:00
DisherProject
85bd82ef07
NR S4: Add a sound effect when Malifor flees
2018-11-07 15:40:55 -06:00