Commit graph

75233 commits

Author SHA1 Message Date
Severin Glöckner
6bee4e751c Linux: Add Mimetype support for maps
This allows to open map files from the filemanager by clicking at them.

2nd, hidden *.desktop file needed to associate the mimetype with the wesnoth command
icons in mimetype/ are used as file icon
icons in apps/ are shown when the user want to change the default program for the mimetype
(In Dolphin this place can be reached after opening the file properties)
2019-10-09 02:32:49 +02:00
josteph
091a5e302c Add previous commit to changelog. 2019-10-08 21:06:58 +00:00
josteph
d154cf14a6 Auction X: Don't shuffle the center side 2019-10-08 21:02:34 +00:00
Steve Cotton
c5df7c4558 Tutorial S02: Show "recruit the right units" when the player has gold
It's confusing when it pops up on turn 12, regardless of the game state. My
leader is normally on the other side of the river from my keep, and I always
wonder "what about my play triggered that?"

Move the message to be part of the "I now have enough gold to recruit more
units" hint.

(cherry picked from commit 80a2ace28c)
2019-10-08 19:39:11 +02:00
Steve Cotton
ed611f9438 Re-enable the editor help, and use it to document the keyboard modifiers (#4414)
... with the idea that these pages will either be improved or hidden again
before 1.16.0. I think the terrain-editor part will be good enough to stay in
1.16, but the scenario editor part needs to be updated by someone familiar with
it.

This puts the two tips that are currently in https://wiki.wesnoth.org/MapEditor
in to the in-game text.
2019-10-08 19:22:34 +02:00
gfgtdf
306df9fc74
Update changelog.md 2019-10-08 16:38:08 +02:00
Steve Cotton
704aadd17c Changelog for #4359 2019-10-07 00:00:13 +02:00
Steve Cotton
b3ca78a57a Help for the ^Uf mushrooms terrains, including an editor-only hint
As the terrain is hidden in help, these hints can only be seen by
using the "Terrain Description" command on a ^Uf or ^Ufi mushroom
hex, and then switching to the overlay's own page.

A hint for players about how these mushrooms behave, and an editor-only
hint about replacing the ^Uf mushroom terrains with ^Tf.
2019-10-06 23:55:38 +02:00
Steve Cotton
5a1a8663a1 Allow translatable strings to display carets to the user (#4359)
Treat "editor^The overlays '^Uf' and '^Ufi' are deprecated because ..."
as a having translation hint "editor", and show "The overlays ..." to the
user. This disallows using carets inside the translation hint itself.

Code already reviewed in the discussion in #4359.
2019-10-06 23:55:38 +02:00
Charles Dang
a9254f4995
Revert to default PR trigger types
This allows them to trigger when synchronized and reopened too.
2019-10-07 03:13:17 +11:00
pentarctagon
c0843fe1a6 Fix the MP lobby reloaded indicator always saying the game isn't reloaded.
Currently, the value of `game["savegame"]` is one of `mp_game_settings::SAVED_GAME_MODE`.  However, the `to_bool()` function doesn't recognize any of those values as being true, so a game is always shown in the MP lobby as not being a reload, even if it actually is.
2019-10-06 17:31:20 +02:00
Steve Cotton
c8b1be9cd4 WoV translation: it hasn't been translated into en@shaw
I don't know what happened here, but c61b9b3b3f
had WoV's en@shaw.po filled in with normal English. That's an error, this
commit removes all of those strings.
2019-10-06 12:06:33 +02:00
Charles Dang
b4fa646d45
Remove issue trigger
I don't think the labler action is meant to work with issues
2019-10-06 20:12:14 +11:00
Charles Dang
d7dabbaa51
Restrict labler to PRs being opened, enabled it for issues being opened 2019-10-06 18:15:10 +11:00
Charles Dang
8831f84d44
Added some rules for the labler 2019-10-06 18:11:28 +11:00
Charles Dang
cbd2d80306
Added labler action 2019-10-06 18:03:36 +11:00
Steve Cotton
39c5df7544
Simple Attack Micro AI Demo: Update dialogue for 1.14's AI improvements (#4431)
The default 1.14 already considers high-XP attacks.  Other than the dialogue,
the only change is to reduce the AI's default aggression, so there's more
contrast between what the Micro AI does compared to what the default AI does.

Switched to typographic quotation marks in the dialogue, and removed double
spaces between sentences.
2019-10-06 06:46:00 +02:00
mattsc
036bf8b6ae Experimental AI: fix poisoners ignoring [avoid] tag 2019-10-05 19:24:40 -07:00
Steve Cotton
caf1c8eebd Tutorial S02: Make the grunt cross the bridge without bait (#4425)
Not a code-revert, but a behavior-revert of the switch of this unit
to use the guardian AI. 26327a5bdc.

If he somehow doesn't get across the bridge, warn the player
that something has broken.

(cherry picked from commit 656a44664d)
2019-10-05 20:18:35 +02:00
gfgtdf
873752943f fix [modify_side] controller=ai for the current side 2019-10-05 16:27:04 +02:00
Nils Kneuper
2e82cca1c8 updated Italian translation 2019-10-05 11:30:15 +02:00
Celtic Minstrel
d090f91bce Alter the special notes syntax in EffectWML so that the note macros can be reused in that context 2019-10-04 23:49:05 -04:00
pentarctagon
f05f811d6c Rename [unit_type_fix] to [modify_unit_type] for clarity. 2019-10-04 11:17:41 -05:00
Nils Kneuper
e3cffa8b8e updated Portuguese (Brazil) translation 2019-10-04 12:07:13 +02:00
Steve Cotton
a8c96ba1f4 NR S06a: Fix the filter for Tallin complaining that they're sitting in the caves (#4371)
Now it only triggers if five or less units are outside.

(cherry picked from commit 0be05d06d5)
2019-10-03 15:53:44 +02:00
Steve Cotton
9a4bd1342a Changelog entry for #4411, terrain encapsulation 2019-10-03 14:32:45 +02:00
Steve Cotton
3b36ada41e
Improve the terrain code's encapsulation (#4411)
Change terrain_type_data's documentation and some methods to avoid exposing
implementation details, for example renaming try_merge_terrains to is_known.

Move the code to load all the [terrain_types] in to the terrain_type_data
class's own .cpp file, and out of terrain.cpp.

Add documentation about "underlying", and why worst(best(a,b),c,d) terrains don't work
The commented-out code for merging pluses and minuses in the middle of an alias
was commented out in 1.5's d2edbe118a, but the
concept of pluses and minuses in the middle of an alias seems broken anyway
(see comments added to merge_alias_lists in this commit).

Descriptions are t_strings, avoid converting them to std::string and back.
2019-10-03 14:30:04 +02:00
Nils Kneuper
9292633267 updated Korean translation 2019-10-03 14:15:57 +02:00
Severin Glöckner
b593e82cd2 schema: Use same definition as in actionwml 2019-10-02 05:59:58 +02:00
Severin Glöckner
9c099d5d07 remove TODOs regaring overlays 2019-10-02 03:50:39 +02:00
Severin Glöckner
664871bd14 add map_file to schema 2019-10-02 03:50:08 +02:00
Severin Glöckner
6da85e9042 switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
josteph
c72f1dc07a Abilities: Revert an unintentional change of the behavior of affect_allies.
Fixes #4257
2019-10-01 19:33:24 +00:00
josteph
9384d3b6b6 tips: New tip about terrains. 2019-10-01 18:26:39 +00:00
Severin Glöckner
a70bb58a21 TSG 5: add color to narrator message. 2019-10-01 16:36:51 +02:00
Severin Glöckner
ea039d6050 TSG 4: avoid endless loop in debug mode
There are no adjacent hexes if she isn't there.
2019-10-01 16:32:33 +02:00
doofus-01
7b56aba4ac adjusting bat cropping for help pages 2019-10-01 15:16:22 +02:00
josteph
e35fb7b90e fixup! tips: Add a tip about allied healing
Use a typographical apostrophe.
2019-10-01 13:13:14 +00:00
Nils Kneuper
3bf54fd9b7 updated Chinese (Simplified) translation 2019-10-01 14:00:58 +02:00
Nils Kneuper
b51831722e updated Portuguese (Brazil) translation 2019-10-01 12:59:24 +02:00
Elvish_Hunter
636f29b0b9 Ported unused_functions to Python 3 2019-10-01 11:37:26 +02:00
Elvish_Hunter
ffc5edd3fe Ported ai_test to Python 3 2019-10-01 11:36:35 +02:00
Wedge009
50ebd92e58 Dialogue correction
https://forums.wesnoth.org/viewtopic.php?p=647742#p647742
[ci skip]
2019-10-01 18:02:11 +10:00
josteph
6f1caad308 Add #4217 to 1.14.10 changelog. 2019-09-30 22:55:15 +00:00
josteph
dfe7347718 help: Break the new saveload and whylost topics into paragraphs for translation. 2019-09-30 22:49:33 +00:00
josteph
c4eb994bdd Add to 1.14.10/1.15.2 changelog backports listed in #4356 2019-09-30 22:47:14 +00:00
josteph
c939d13711 tips: Add a tip about allied healing 2019-09-30 20:32:30 +00:00
josteph
5bbc7a6c7c save_index: Move a space out of a translatable string.
The string _("replay") is already used elsewhere, so this prevents two kinds of bugs from
happening:

- Translating _("replay") and _(" replay") differently
- Translating _(" replay") without the leading space

14 po files got this wrong in one way or another.
2019-09-30 17:58:42 +00:00
josteph
e6848502e0 Sidebar: Do not show the ten-thousands-of-a-percent digit.
Before this commit, a probability of 0.67% was shown as 0.67%.
Now it is shown as 0.7%.
(That's not a typo. I'm talking about a chance of 67 permyriad.)

Reproducible in the test scenario by having the Wolf Rider attack the
unit to its south.
2019-09-30 15:08:28 +00:00
josteph
2efddd1ac7 Partly revert "Lua: make side.flag and side.flag_icon writable"
It wasn't working, see https://github.com/wesnoth/wesnoth/issues/4396#issuecomment-536325394

This partly reverts commit 9bd717c723.
2019-09-29 18:38:56 +00:00