26098 Commits

Author SHA1 Message Date
Celtic Minstrel
15f431785a Add [special_note] tag in [unit_type] as a neater way of specifying special notes for the unit's description 2019-09-12 08:51:05 -04:00
Celtic Minstrel
d9cebd634e
Add new mushroom base terrain and make the overlay have mixed defense (#4299)
Thanks to @doofus-01 for the mycelium terrain graphics.
2019-09-11 09:07:15 -04:00
Nobun
0cf8da9357 typefix 2019-09-11 14:32:16 +02:00
Nobun
e1c7c84957 wmlxgettext: fix #4275: not handle objectives.lua's turn counter 2019-09-11 14:32:16 +02:00
Steve Cotton
06dd9a140c Add [find_path] option "nearest_by", and simple_find_path test
Adding this is issue 2 of #4177, changing the behavior when [find_path]
is given a SLF which matches multiple hexes.

The map and tests here should be easy enough for manually editing them. It
duplicates some of the functionality of the existing characterize_pathfinding
tests, however those tests need their expected values to be calculated and
can't be changed by hand.

'''nearest_by''': {DevFeature1.15|2} possible values "movement_cost"
(default), "steps", "hexes". If the [destination] SLF matches multiple hexes,
the one that would need the least movement points to reach may not be the one
that's closest as measured by '''hexes''', or closest as measured by steps,
from the starting point.

Behavior in 1.14 depended on which hex was checked first.
2019-09-11 11:17:56 +02:00
Gunter Labes
2d16a3b410
Typo fix 2019-09-10 19:03:28 +02:00
Earth-Cake
2d18598863 Gray Woods -> Grey Woods 2019-09-10 09:05:03 -04:00
Earth-Cake
ad92095be0 Add Wose Sapling file independent from Wose 2019-09-10 09:02:10 -04:00
Earth-Cake
e8c39756c8 Add special notes 2019-09-10 09:01:53 -04:00
Steve Cotton
9792af39b8 Trigger an L4 deprecation message for [terrain_type]vision_alias=
The feature was never added, a deprecation message saying that it's been
removed is the closest option to the situation. While terrain.cpp itself
supports vision_alias, it was never added to the calculations in movetype.cpp,
therefore it never affected units' vision. It's also not shown in the help
about the terrain.

This doesn't affect the features of units having vision costs different to
movement costs, or of units having a different number of vision points to
movement points, both of which are still supported.

While I'd encourage anyone who wants to implement vision_alias to do so, at the
moment I feel that the still-supported features in the same area haven't been
explored yet, and that vision_alias isn't going to developed before 1.16.0 is
released.
2019-09-10 06:42:21 +02:00
gfgtdf
7621b9b63e
fix [modify_unit] cannot set attributes to false #4325 2019-09-08 19:50:56 +02:00
sigurdfdragon
925d3e2ce9 WoV: Update to match the 1.0.3 version on the 1.14 add-on server
Changes:
S01: Make easier on easy and improve flow of human enemies
S08: Improve dialog feel
Use ellipses
Remove deprecated macro
2019-09-08 13:13:45 -04:00
Martin Hrubý (hrubymar10)
6f468a3757
Migrate links to https if available
Closes #3343
2019-09-08 07:53:28 +02:00
Wedge009
e2c20e5563 Restore defence modifier display in side-bar
Fixes #3693, based on 47bd5ade.

[ci skip]
2019-09-07 22:50:02 +10:00
Steve Cotton
f514304954 UtBS S09: Non-merfolk get in the ships before they sail off
At the end of S09, the heroes have four ships. The narrative is that all the
elves are on the ships, but the in-game visuals were that the ships move while
all the player's units are standing on the shore.

The heal=yes isn't needed since 74c2398f6, but adding it here avoids
a possible bug if this commit is backported to 1.14.
2019-09-07 12:02:12 +10:00
Elvish_Hunter
853ae430ce wmllint: the correct package name for spellchecking is python3-enchant 2019-09-06 11:01:33 +02:00
nemaara
03cd1a6e0a SotBE S3: remove unused note 2019-09-04 14:33:36 -04:00
nemaara
7a7163e7b8 TSG S4: revise dialogue (fixes #4301) 2019-09-04 14:24:43 -04:00
pentarctagon
0f5b684830
Fix Vampire Bat being listed twice.
It should be Blood Bat instead.
2019-09-02 15:19:35 -05:00
Celtic Minstrel
8ce01da249 wmllint: Treat .mask files as maps 2019-09-02 12:48:01 -04:00
Celtic Minstrel
9be9dd931d wmllint: Fix some warnings detected by pylint 2019-09-02 12:47:58 -04:00
nemaara
8bdd2e6764 THoT S10: change orc leader reference (fixes #4295) 2019-08-30 23:52:39 -04:00
nemaara
f5f5da0828 Masked Ulfserker: fix advancement path 2019-08-30 23:50:00 -04:00
Celtic Minstrel
a127eb07b3 Add a schema for the diff format 2019-08-30 23:36:32 -04:00
Celtic Minstrel
b08677c678 Fix erroneous comment 2019-08-30 23:23:10 -04:00
Steve Cotton
1c123fb3fa Allow '1-infinity' in ranges, and tighten the schema's validation of ranges
Fixes #4253.

The schema's validation of ranges now rejects negative numbers, because the C++
code doesn't support them (both before and after this commit):
* utils::parse_range("-7") will return {0,0}, because std::stoi("") throws invalid_argument.
* src/map/location.cpp will parse it as -7, but that will never match an on-map coordinate
2019-08-29 22:28:22 +02:00
nemaara
d3d3c040f5 THoT S6: remove unnecessary avoid location 2019-08-29 12:02:55 -04:00
Charles Dang
3ee7e1a31c Updated credits
[ci skip]
2019-08-29 23:01:41 +11:00
nemaara
af2aaf4ba6 THoT S4: remove unused ai tags 2019-08-28 21:53:21 -04:00
nemaara
7044775338 THoT S1: give Movrur silver crown 2019-08-28 10:47:14 -04:00
nemaara
1ce93621e1 THoT S6: remove invisible village 2019-08-28 10:47:03 -04:00
nemaara
f429d88385 DiD S11: fix typo 2019-08-27 23:24:57 -04:00
nemaara
f54fd954ae THoT S5: fix typo 2019-08-27 22:24:53 -04:00
loonycyborg
4830c76f45 pot-update and regenerate doc files 2019-08-27 22:48:58 +03:00
ForPeace-Wesnoth
9c002697c0 objective update #4254
#4254
2019-08-27 03:23:22 -10:00
ForPeace-Wesnoth
24ae649ff7 remove bonus objective once it's completed 2019-08-27 03:17:28 -10:00
Wedge009
ff772b1be8 Add game_created sound key
See #4260 for details.

[ci skip]
2019-08-27 13:41:01 +10:00
Wedge009
9dd6f70c98 Change game_created event sound to join.wav on @stevecotton's suggestion. 2019-08-27 13:41:01 +10:00
Wedge009
e4e260709a Address comments against #3246 in order to resolve #2016.
* Remove unused notify_mode.NOTIFY_COUNT.
* Remove obsolete comment against mp_ui_alerts::items.
* Remove unused is_lobby parameter in mp_ui_alerts::game_created().
* Synchronise game_created sound in game_config.cfg with game_config.cpp.

(cherry picked from commit abaa77f7c6ca5a7b02ca9dc5b8bb52159bbcb4c9)
2019-08-27 13:41:01 +10:00
ville
169cff9ec7 Adds a preference item for a sound being played and desktop notifications in the lobby when a new game is created.
Remove unnecessary blank lines and debugging comments

- Adds a preferences entry in the multiplayer/alerts menu so sounds and desktop notifications can be toggled.

Reformat a few points for consistency

Have desktop notification show name and scenario of new game

Have desktop notification show name and scenario of new game

Update desktop notifications to use VGETTEXT for translations

(cherry picked from commit af71dbf1b1caec0ac654180cca9c037955602301)
(cherry picked from commit a2d994328669499549a614753781ba9cabcfa41d)
2019-08-27 13:41:01 +10:00
gfgtdf
6ba25a8c64 overlay= related wml cleanups 2019-08-25 22:29:49 +02:00
gfgtdf
8610cc0a15 use [modify_unit] over store+unstore 2019-08-25 22:29:49 +02:00
gfgtdf
ef06634485 use overlay effect over [unit] overlays= 2019-08-25 22:29:49 +02:00
gfgtdf
aa07ec7915 add new macors to replace loyal trait. 2019-08-25 20:35:28 +02:00
gfgtdf
f4ad4f11c7 use [remove_trait] to remove loyal 2019-08-25 20:35:28 +02:00
gfgtdf
5cb93694c6 move loyal overlays to the loyal trait
since the recent changes to overlays= in particular 1a7724e5472,
e71033374c35 and b2cd1cf6c [unit]overlays= is no longer the
recommended way to add an overlay and the use of the
apply_to=overlay effect is reccomended instead, so adding it
to the [trait] is the most natural option here.

this in particular fixes #4058 . Also people simply forgetting the
IS_LOYAL macro was a not-so-uncommon cause of bugs.

In some cases people want to give the LOYAL trait without giving the
loyal overlays for those cases i added a optional OVERLAY parameter to
the {TRAIT_LOYAL} macro, also heroes should now use {TRAIT_LOYAL_HERO}
instead which uses the hero overlay. The IS_LOYAL and IS_HERO macros are
no longer needed in combination with those traits.
2019-08-25 20:36:35 +02:00
gfgtdf
26c2f941f2 use [remove_object] over [remove_unit_overlay] if possible
this just prevents the units wml from getting cuttered with many [objects]
(generated by the [unit_overlay] implementation) that cancel each other out.
(in the cases here it shouldn't really be a problem though, i still did it
because it feels clener this way)
2019-08-25 20:35:28 +02:00
gfgtdf
a86df6c984 utbs: use [object] for dehydration implementation
this in particular makes it compatible the umc code that uses [remove_object]
It also makes the implementation a bit easier since we don't have to compute
things manually anymore, also duration=scenario takes care of cleanup at
scenario end.
2019-08-25 20:35:28 +02:00
gfgtdf
ce5696f334 add duration= key to [unit_overlay] 2019-08-24 22:19:58 +02:00
gfgtdf
5442d922c4 add [unit_overlay] object_id= attribute
with this the object can be removed with [remove_object]
2019-08-24 22:19:58 +02:00