Commit graph

25953 commits

Author SHA1 Message Date
Nils Kneuper
b879239096 updated Bulgarian translation 2021-07-03 18:48:42 +02:00
Gunter Labes
2bf650b571
Update deprecated path options 2021-06-26 20:46:08 +02:00
loonycyborg
13545f3279
pot-update and regenerate doc files 2021-06-20 15:07:59 +03:00
Nils Kneuper
c4c1233f2a updated Indonesian translation 2021-06-12 11:37:06 +02:00
Iris Morelle
6ebad142b4
pot and documentation update 2021-06-07 03:10:33 -04:00
Iris Morelle
1b64c1baf4 freenode suffered a horrible accident, we're moving to Libera.Chat
The problem is that right now Libera.Chat does not have a web chat
interface, and no guarantee as to what its URLs are gonna be like
; although staff have said they're probably gonna stick to the same stack
as before so we might end up with very similar looking URLs.

For the time being, we have to get rid of the webchat URLs. They will be
missed a bit. Maybe.

Before anybody asks, yes, I am aware of the po comments in German
translation catalogues including a freenode IRC protocol URL. If I do
anything about it now, somebody will helpfully revert my changes during
a message catalogue merge (it happened some time ago). So, not touching
those until release time.

Also nobody cares about Travis anymore. It's dead cruft, just leave it
alone. (What on earth is that massive base64 string anyway?)

CC #5797
2021-05-22 22:05:54 -04:00
Steve Cotton
69d129ddea Credits: remove outdated nickname
This cherry-picks 287ec15c10 and part of 7334cc97c9.
2021-05-15 09:06:49 +02:00
Iris Morelle
0f137ce4b4 Update Czech translation credits 2021-05-12 18:16:31 -04:00
Steve Cotton
14ff6b3edf Credits: hide the blank section for Friulian
When an [about] section has a title but no [entry] tags, it's automatically
hidden in the credits. The entry with name="" was causing the title to show
up with a blank section under it.

[ci skip]

(cherry picked from commit 6a1d7cf385)
2021-05-12 16:28:23 +02:00
Kevin Yap
6dc06449fa Update @iKevinY's credits entry
(cherry picked from commit 0f2f15f2a1)
2021-05-08 23:43:20 +02:00
Steve Cotton
2ecb28aaba Credits: correct the number in newfrenchy83's name
This was fixed on master in f51cf05549
2021-05-08 23:15:49 +02:00
loonycyborg
edc0c99a95
pot-update and regenerate doc files 2021-05-02 21:11:37 +03:00
Elvish_Hunter
1e2c292492 GUI.pyw: fixed compatibility with Python 3.9
Fixes #5719.
2021-04-18 21:57:39 +02:00
Nils Kneuper
d2062e2b5c updated German translation credits 2021-04-18 09:48:26 +02:00
Iris Morelle
5703c392e3 pot and documentation update 2021-04-17 22:20:38 -04:00
Iris Morelle
ac0962e029 wmlunits: Units may have movement cost == max mp and be able to move
This applies to the Walking Corpse in particular, which has 4 MP and 4
movement cost to enter shallow water. In practice this means that it can
move into shallow water only if it's not slowed and hasn't spent any
movement points this turn, and then it cannot move any further until the
next turn.

Closes #5689.
2021-04-14 00:47:45 -04:00
Elvish_Hunter
fab37ca979 wesnoth_addon_manager: removed two calls to file() 2021-04-12 21:01:43 +02:00
Iris Morelle
b06265e17a ui: Handle the battery/countdown report switcheroo differently
This fixes the countdown report (a.k.a. clock) using the wrong font size
at small resolutions, as well as taking over the battery report's box
without resizing it and thus running out of horizontal room most of the
time.

This also removes two broken references to "timeout-panel" and
"report_timeout", neither of which being names that actually exist in
this version of the theme.
2021-03-18 20:39:22 -03:00
Iris Morelle
48cb1d6150 ui: Anchor the Observers icon to the sidebar, going right to left
Supersedes 9e0593d714, which attempted to
fix the issue with the icon displaying at unexpected places by anchoring
it to the battery display from the left instead of staying true to the
intended design.

CC #5575
2021-03-18 20:39:16 -03:00
Iris Morelle
c4c5629c66 ui: Fix bad x position for the theme UI battery status on low resolutions 2021-03-18 00:08:57 -03:00
Iris Morelle
984571dfe1 ui: Reduce font size for the ToD counter
*Should* generally fix counters like 14/15 getting ellipsized. There was
no real reason for it to be so large to begin with.
2021-03-18 00:08:52 -03:00
Iris Morelle
562dfffddc ui: Rearrange and resize the unit vision and XP labels slightly
This makes it so the unit vision label uses a smaller font on smaller
resolutions. It also makes it so it doesn't take space away from the XP
report for all resolutions. Meanwhile, the XP report has more space.

CC #5575
2021-03-18 00:08:03 -03:00
Iris Morelle
f2e7a9b5f9 ui: Reduce unit HP/XP/MP/Def font sizes and line heights on 1024x600
Fixes the unit name overlapping the MP and defense reports.

CC #5575
2021-03-18 00:07:53 -03:00
Iris Morelle
bb15f805c0 ui: Fix font and box sizes for unit defense labels on the sidebar
This fixes the "def" label (previously unknown to everybody before the
sdl_ttf_compat API transition!) having the wrong box size and alignment.
This also extends to its accompanying unit defense report, which had the
wrong font size entirely.
2021-03-18 00:06:05 -03:00
mattsc
23fc509256 Lua AIs: fix some incorrectly used variables
Fixes #5586
2021-03-14 08:59:42 -07:00
mattsc
0c7ea59613 Multipack Wolves MAI: fix error when a wolf is surrounded 2021-03-14 08:59:41 -07:00
mattsc
778fde4fbe Protect Unit Micro AI: ensure units are on AI side
In general, the units specified in the MAI setup should be on the AI side.  However, that might change during a scenario, for example when there is an event that switches units to other sides.
2021-03-14 08:59:41 -07:00
mattsc
c61494e1dc Goto Micro AI: fix possible error when ignoring enemies
The final determination of the hex to move to must take enemies into account, otherwise the MAI might try to move the unit to a hex it cannot actually reach.
2021-03-14 08:59:41 -07:00
mattsc
768c5f8315 Goto Micro AI: fix checks of avoid_enemies key
Numerical values are sometimes transferred from WML to Lua using the string type. This applies, for example, to very small numbers, such as 0.0000000000001. This needs to be taken into account when checking whether avoid_enemies is a number.
2021-03-14 08:59:41 -07:00
mattsc
9b6008be54 ExpAI: fix bug in finding hexes next to healers
The CA was supposed to mark hexes next to healers as potential healing locations, but because of this bug that did not work.
2021-03-14 08:59:09 -07:00
Iris Morelle
1f400d3678 pot and documentation update 2021-03-07 00:52:09 -03:00
Steve Cotton
2b8e887bcf Fix [resistance_defaults] and [terrain_defaults] (issue #5308)
The bug introduced in fcd0ceda is fixed by ensuring that movetype::merge() is
called with the strings "movement_costs", "vision_costs" and "jamming_costs"
instead of "movement", "vision" and "jamming".

Both [terrain_defaults][movement] and [terrain_defaults][movement_costs] are
supported and equivalent, as added to the master branch in 3522eb2c.

These now work again:

    [resistance_defaults]
        id="special_res_for_test"
        default="30"
    [/resistance_defaults]

    [resistance_defaults]
        id="copy_of_arcane"
        default="(arcane)"
    [/resistance_defaults]

    [terrain_defaults]
        id="special_terrain_for_test"
        [movement]
            default="(swamp_water + 1)"
            orcishfoot="(swamp_water * 2)"
        [/movement]
    [/terrain_defaults]

Formulas can now access other parts of the movetype too, as this allowed the
code to be the same as in 1.15:

    [terrain_defaults]
        id="special_terrain_for_test"
        [movement_costs]
            default="(swamp_water + 1)"
            orcishfoot="(vision_costs.swamp_water * 2)"
        [/movement_costs]
    [/terrain_defaults]
    [terrain_defaults]
        id="special_terrain_for_test"
        [defense]
            default="(20 + 7 * movement_costs.special_terrain_for_test)"
        [/defense]
    [/terrain_defaults]

The formula handling will recognise "resistance", "movement_costs",
"vision_costs", "jamming_costs" and "defense". For [resistance_defaults], the
formula will recognise both "(arcane)" and "(resistance.arcane)" as equivalent,
similarly for [terrain_defaults] "(swamp_water)" is a shorthand for whichever
subtag is being patched.

A [terrain_defaults] tag may use data added in a previous [terrain_defaults],
as in the examples above where the second tag's [defense] is based on the first
tag's [movement_costs], this gives orcish grunts on the special terrain a 62%
chance to be hit. However, relying on data in the same [terrain_defaults] that
creates or changes it is unsupported - if the [movement_costs] and [defense]
were in a single [terrain_defaults] tag then the result would be implementation
defined, because no guarantee is made of the order in which the children of the
tag are processed.

The unit tests for [terrain_defaults] and [resistance_defaults] must stay
out-of-tree until we support some method of testing them without affecting the
core units' stats during other tests. The test added here is limited to
checking the ways that WML can read the stats, it's also a framework for the
out-of-tree parts to use.

This is a squashed cherry pick of these commits from 1.15:
* 72863e578b (the unit test)
* 0ba433203e
* 3522eb2c2a (adding the aliases)
* 0035b776d7 (fix for empty children)
2021-03-05 18:09:19 +01:00
Celtic Minstrel
840b6e70be Fix [modify_side]reset_maps=true
I have no idea how this was missed...
2021-02-22 21:26:30 -05:00
Celtic Minstrel
2271de81b7 Promote deprecation warning for [option]message= to level 3
Addresses #3980
2021-02-22 21:26:05 -05:00
doofus-01
7059dd37dd UtBS Sc8 - replace Iwr terrain with Ior, remove custom rules for water transition 2021-02-15 14:26:20 -08:00
Iris Morelle
3963dc10d7 pot and documentation update 2021-02-14 16:38:36 -03:00
Steve Cotton
e272e4824f Editor help: make the named areas topic visible, make "to load ..." translatable
This corrects a pair of editing errors, thanks to Celerini for reporting them.
2021-02-08 23:40:28 +01:00
Michal Žejdl
83ef66ce32 change User to Custom to unify the help with the game 2021-02-04 13:11:49 -06:00
loonycyborg
8984dca49a pot-update and regenerate doc files 2021-02-02 21:40:35 +03:00
Steve Cotton
75f7cb1e85 wmlxgettext: support double quotes in raw strings (fixes #4484)
This adds support for _<<map="{maps/01_First_Map.map}">>, as used in the
editor file format documentation.

This doesn't require another .pot update, because both the workaround in
3d77d36 and this fix generate the same string in the .pot file. However, it
does change the string that the Wesnoth executable looks for so that it matches
the .pot file's contents.

Cherry picked from commit c30c30acfc, and
additionally reverted commit 3d77d36bb0.
2021-01-16 21:15:36 +01:00
loonycyborg
3f8a995ee0 Revert "Fix pot-update breakage by doubling quotes"
This reverts commit 3d77d36bb0.
2021-01-16 22:37:12 +03:00
loonycyborg
a86d56c023 pot-update and regenerate doc files 2021-01-16 16:42:44 +03:00
loonycyborg
3d77d36bb0 Fix pot-update breakage by doubling quotes 2021-01-16 16:33:43 +03:00
Steve Cotton
2d917fe9fa Re-enable the editor help, add docs about keyboard modifiers and the scenario editor
A couple of warnings about the scenario mode being buggy are added to the
user-visible text, find these by looking for <bold> tags within the text.

This takes all the changes to the editor documentation that were made to master
up to and including a4711ebad9. There have been no changes at all to the editor
documentation in the 1.14 branch, while there have been several updates to the
master branch that would be good to backport if the help is displayed in the
1.14 branch - this commit simply pulls the entire file into the 1.14 branch
along with enabling the editor documentation (a small change to
data/core/help.cfg, as done in commit ed611f9438).

The sound source tool isn't mentioned at all in this documentation. There is a
button for it in the 1.14 UI, but that button's only function is to say that
it's not implemented, so documentation seems unnecessary.
2021-01-06 10:26:15 +01:00
loonycyborg
312d156ec2 pot-update and regenerate doc files 2021-01-02 12:52:26 +03:00
Steve Cotton
8971d1ce86 help.cfg: fixed wmllint warnings about translation marks
This is a cherry-pick of f0bdd01918
2020-12-30 13:54:42 +01:00
Severin Glöckner
315ed6b9e3 TSG: fix hiding ability
Apply PR #5387 to TSG
2020-12-28 00:57:07 +01:00
kabachuha
70c1fc8313 DW: fix missing translation marks 2020-12-25 15:41:13 +03:00
Michal Žejdl
9d50fc8a28 SotBE S09: name opponent 2020-12-20 12:56:31 -06:00
Iris Morelle
b59601369e pot and documentation update 2020-12-18 22:35:40 -03:00