28549 Commits

Author SHA1 Message Date
Wedge009
f00ee60cbf Spelling correction + standardise spacing.
[ci skip]
2022-06-20 09:11:59 +10:00
Gunter Labes
ff4a3bb5ff
Remove reduntant check on s2 2022-06-19 21:52:25 +02:00
Celtic Minstrel
2de3246915 Add font scaling back as an advanced preference for now.
This gives an opportunity for people to try it out and maybe improve it. It can be removed again before 1.18 if deemed unsuitable at that time.
2022-06-19 14:38:45 -04:00
Pentarctagon
5857964d61
1.17.5+dev. 2022-06-19 09:07:13 -05:00
Pentarctagon
f6cfad7b50
1.17.5. 2022-06-19 09:07:13 -05:00
Pentarctagon
44e38ae552
pot-update and regenerate doc files. 2022-06-19 09:07:12 -05:00
Nils Kneuper
253436b9a8 updated arabic translation credits 2022-06-19 11:31:08 +02:00
Elvish_Hunter
d16557bae1 wmlscope: used an enumerator instead of strings in scan_for_definitions() state checks 2022-06-18 19:06:07 +02:00
Elvish_Hunter
cfbad6b81c wmlscope: avoid crashing on non-UTF8 files 2022-06-18 19:06:07 +02:00
Celtic Minstrel
473c6e468e
Fix wmlindent quote detection (#6764)
* wmlindent: Fix parsing quotes in comments

* Remove unnecessary wmlindent ignores

* Run wmlindent
2022-06-18 09:37:55 +02:00
Tommy
cf4c265fc3 Fix wmlindent complaint. 2022-06-17 03:31:10 +12:00
Tommy
8380e018f5 Fix low-res themes during replay.
This was mentioned as a comment in #5620.
2022-06-17 03:02:38 +12:00
Tommy
9615236ae0 Fix low-res editor themes.
Fixes #5620.
2022-06-17 02:04:42 +12:00
Tommy
91fd53ac45 Fix "End Turn" button placement on low-res themes.
Fixes #6544.

I am not sure how this was even remotely working as it was.
2022-06-17 02:04:42 +12:00
Tommy
9e6762690c SoTA: Fix zombie recruit dialog string concatenation 2022-06-15 18:54:44 +12:00
Tommy
c5eaa69fd8 SoTA: Fix zombie recruit dialog error.
There was an error complaining that horizontal_grow and
horizontal_alignment cannot both be set. I removed horizontal_grow
in favour of horizontal_alignment. I do not see any visible difference
in the dialog.
2022-06-15 18:54:44 +12:00
Tommy
ebcae03e48 Add a new image tiling mode: "tile_highres" for high-DPI tiled images.
The other options "tile" and "tile_center" work in draw space,
which is consistent with past behaviour, but doesn't look as nice.
2022-06-14 14:48:03 +12:00
Charles Dang
f86c935668 GUI2/Panel: used rect fill color for box display 2022-06-14 14:47:45 +12:00
mattsc
1769b6cf01 Protect Unit MAI: fix typo in MAI removal code 2022-06-11 06:18:51 -07:00
Celtic Minstrel
e2875f34b2 Fix a bunch of luadoc errors 2022-06-11 00:15:18 -04:00
Celtic Minstrel
7f873a0150 Fix a bunch of broken uses of helper.wml_error
It's deprecated, but here they were broken because helper wasn't even loaded.
2022-06-10 23:42:18 -04:00
Celtic Minstrel
e635161957 fix wesnoth.type giving an error on tables or userdata without a metatable 2022-06-10 23:31:41 -04:00
Celtic Minstrel
d886ddf61c Lua: Fix a leaky global function 2022-06-10 23:31:40 -04:00
Tommy
575286cb86 CVideo: remove get_dpi and get_dpi_scale_factor.
screen_pitch_microns is deprecated, and has been removed from the
GUI_SCALE_RESOLUTION macro in WML. The macro itself has been left in
place for potential future use.

The screen_pitch_microns variable has been left in place, but is now
a constant and will only ever return the default value equivalent to
96 DPI.
2022-06-11 05:56:06 +12:00
mattsc
fe0b375fca ExpAI castle switch CA: fix error when stored leader has been killed
The castle switch CA stores the leader move because the evaluation is expensive.  If the leader was killed in between storing and reevaluation of the CA, this would previously cause an on-screen error message and the CA to be blacklisted for the turn.

This fixes #6440.
2022-06-09 07:51:33 -07:00
mattsc
84531b834e Bottleneck Micro AI: fix bug involving units without moves
An integral part of this MAI is that it moves weaker units out of the way for stronger ones.  Units without moves are taken into account by giving them a very high rating.  This was previously only done on what's considered the AI's territory (the AI side of the bottleneck) which works fine most of the time since the AI does not try to move onto enemy territory.  However, it breaks down on more open maps, where there are way for units to move around the bottleneck, as AI territory is not always well defined on them.  However, there is no need to restrict this to AI territory only.

This fixes #6599.
2022-06-09 06:29:14 -07:00
Nils Kneuper
cfa4eb5b3d updated Polish translation 2022-06-06 09:58:50 +02:00
doofus-01
31a42068d8
1.17 small terrain updates (#6751)
* low-priority cave-path transitions

* SotA - remove old terrain codes with Z and y

* replace gold cobbles (Rrd)
2022-06-05 17:09:35 -07:00
doofus-01
0937ba5ffd
1.17 some horseman line standing animations (#6747)
* horseman breeze animation

* knight breeze animation

* lancer breeze anim
2022-06-05 15:09:35 -07:00
doofus-01
22396f6142
1.17 loyalist sprite cleanup (#6746)
* remove semitransparent swooshes

* loyalist sprite cleanup
2022-06-04 14:52:24 -07:00
mattsc
768b930fc4 ai_helper: fix visibility bug in get_attackable_enemies()
The passed filter needs to be enclosed in an [and] tag, otherwise the check for visibility might not work correctly, for example if the filter contains a top level [or] tag.
2022-06-04 09:13:53 -07:00
Charles Dang
97c0ea8ce3
Merge pull request #6734 from wesnoth/new_rendering
Sync rendering system changes so far
2022-06-01 21:36:00 -04:00
Descacharrado
481378aaf3 Use 'leader' and 'grunt' instead of 'chief' and 'lesser orc' 2022-06-01 10:02:58 +10:00
Descacharrado
0742b902a2 Avoid using 'that' twice 2022-06-01 10:02:58 +10:00
Descacharrado
f468020b11 NR S1 Vary the die dialog depending on race 2022-06-01 10:02:58 +10:00
Tommy
638c02b59e Rename image_shape.vertical_mirror_ to mirror_.
It is in fact (and always was) mirroring horizontally.
2022-05-31 21:17:33 +12:00
Tahsin Jahin Khalid
4dc2c342f6
Terrains: Snowy Drake Village Terrain Type and Transitions
Terrain Code: ^Vka
As mentioned, it may need touch ups later on
2022-05-31 12:41:09 +06:00
doofus-01
5e8a467813
1.17 some orc standing animations (#6722)
* orc grunt north-facing breeze

* orc grunt south-facing breeze

* orc assassin south-facing conditional standing anim

* assassin wounded bob anim

* slayer breeze animation

* slurbow revision and breeze anim

* update orcish warlord sprite

* orc warrior sprite update & standing animations

* orc crossbowman breeze anim
2022-05-30 21:07:30 -07:00
Nils Kneuper
86f5aaefaf updated French translation credits 2022-05-29 10:16:25 +02:00
Charles Dang
da4a201101 MP/Create Game: don't hardcode random faction mode options
This still means we need to make sure the options are in the same order as in the enum,
but that was also the case in the old code.
2022-05-28 17:11:51 -04:00
Tahsin Jahin Khalid
c42271fb2c Terrains: add Snowy Drake Village 2022-05-29 02:57:15 +06:00
Elvish_Hunter
8b8f99e65a wmllint: fixed translation marks not being removed from values when checking if a string is empty 2022-05-28 22:03:25 +02:00
Wedge009
8960e407e9 Editor: Add missing items and scenery (resolves #6719) 2022-05-27 10:11:45 +10:00
Charles Dang
cdd854d5fa GUI2/Unit Preview Pane: used NN-scaled [drawing] for unit image (resolves #6700) 2022-05-24 16:26:06 -04:00
Charles Dang
023bdb7142 GUI2/Preferences: refactored how hotkey categories are handled
Constitutes a further refinement of a688ab77b9f18db7fd34118267a3c59e9cf5584c.

Instead of getting a list of categories and filtering out those without any hotkeys (custom WML ones,
for example), we generate a set of categories from the list of visible hotkeys when we set up the list.
This ensures we only ever have matching categories for the hotkeys we're seeing and removes the need
for extra global bookkeeping in the category code.

This also ensures the category list is reconstructed when resetting hotkeys. I don't know how categories
could have appeared/disappeared after resetting (the old code should be safe), but this makes sure it
will never be an issue since when visible_hotkeys is changed, so is visible_categories.
2022-05-24 16:09:00 -04:00
Wedge009
799f251113 THoT S4: Remove spurious WML (closes #6725) 2022-05-24 08:14:24 +10:00
Luis Miguel Iglesias Sánchez
7d2ee4ef72
Merge pull request #6438 from Descacharrado/NR_S01_OOS_6268
NR S01 Solve OOS by moving code to synced event
2022-05-23 10:09:58 +02:00
Luis Miguel Iglesias Sánchez
742bb75ca3
EI S07a various fixes (#6639)
* Side 2 hidden without spoilers
* Fixed Grug upkeep, added dialogue about Ogres joining
* typographic quote
2022-05-22 10:45:17 -05:00
doofus-01
e2c57124f4
1.17 water-related things (#6695)
* caribe monster unit

* some sea-related terrain overlays

* minor variation of dead oak

* update rubble on the water
2022-05-22 05:05:52 -07:00
Celtic Minstrel
0ffe926b01
Make tutorial hint messages persistent (#6620)
The hint messages even persist in saved games, in case someone saves their tutorial
2022-05-20 12:23:49 -04:00