27535 Commits

Author SHA1 Message Date
doofus-01
d3f94aaaa6 unit animations - fix wrong-facing glitch for units with animated torch flame overlay - also allow for ne facing standing animations 2021-02-06 15:11:53 -08:00
Michal Žejdl
3c41e55c5b change User to Custom to unify the help with the game 2021-02-03 19:12:07 -06:00
Andrey Bienkowski
6f237b7ac0 wc: markcheck off due to campaign-specific attrs
World_Conquest has a bunch of campaign-specific tags and attributes. This was causing wmllint to produce spurious errors (see below).
I suppressed the errors with markcheck off

"data/campaigns/World_Conquest/resources/data/training.cfg", line 305: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 519: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 533: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 549: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 565: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 580: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 596: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 620: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 652: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 681: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 692: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 702: info should not have a translation mark
"data/campaigns/World_Conquest/resources/data/training.cfg", line 727: info should not have a translation mark
2021-02-02 17:54:19 +01:00
Andrey Bienkowski
5cb1790669 Cleanup wmllint: display on/off
https://github.com/wesnoth/wesnoth/pull/5481 removed the check that made
wmllint: display on and wmllint: display off necessary.
This PR removes now redundant wmllint comments.

find ./data/ -name '*.cfg' -exec sed -ri '/^ *# *wmllint *:? *display *(on|off) *$/d; s/ *# *wmllint *:? *display *(on|off) *$//' '{}' ';'
2021-02-02 18:36:28 +03:00
Andrey Bienkowski
5826262023 wmllint: Only parse terrain strings if maptype==map 2021-02-02 15:41:34 +01:00
Andrey Bienkowski
5735a16abf wmllint: Ignore notes when checking for shroud and fog
The following line was causing a wmllint error because it contains _s:

Irs, book_start Icr^Ii, Irs

"../../data/campaigns/Descent_Into_Darkness/maps/07c_A_Small_Favor3.map", line 10: warning, fog or shroud in map file
2021-02-02 15:41:34 +01:00
Andrey Bienkowski
bbf3840f82 wmllint: cleanup two useless lines
As far as I can tell this lines do nothing.
1. `file_handle = None` is NOT how to close a file in python
2. The file handle is already closed due to `with open() as file_handle:`
2021-02-02 15:18:06 +01:00
Andrey Bienkowski
2296a17e5d wmllint: remove check for nonstandard word-wrap style
> I'm not convinced this test is doing anything useful. I really doubt this ever caught an error. I'd rather remove it.

@soliton- in https://github.com/wesnoth/wesnoth/pull/5479#issuecomment-763696081
2021-02-02 15:15:56 +01:00
Andrey Bienkowski
7a25c7f7d6 wmllint: remove outdated comment
This poor orphaned comment was left behind by 659f5d1894e400f60a1471816529512a5b23a2f4
2021-02-02 15:15:56 +01:00
nemaara
2540991364
HttT S14: fix no gryphon rider recruit bug 2021-01-31 20:53:42 -05:00
Andrey Bienkowski
63c71a010a
Move [color_range] id=darkblue to core (#5504)
Move [color_range] id=darkblue to core
2021-01-31 15:13:16 -06:00
Andrey Bienkowski
5032bed2b2 wmllint: remove commented out code 2021-01-31 15:09:11 -06:00
doofus-01
842725bcc1
orcish grunt sprite animations (#5506)
* units - orc grunt die anims (north and south)

* units - face-graft for orcish grunt defend frames
2021-01-31 11:28:28 -08:00
Eric Gallager
efefcd2284
Tweak Eastern Invasion difficulty (#5496)
EI: small tweaks
2021-01-26 03:49:58 -05:00
Charles Dang
3757f2caf6 GUI2/Loading Screen: made animation time-based instead of frame-based
Big thanks to @celticminstrel for help on this.
2021-01-25 18:56:48 +11:00
Charles Dang
745b774102 GUI2/Preferences Dialog: utilized maximum_value_label 2021-01-25 18:52:17 +11:00
Eric Gallager
3118f7cecf
Tweak Delfador's Memoirs difficulty (#5382)
* DM: tweak difficulty

this should be equivalent to the following commits in my other repository:
3427219b45 (diff-f2f73b177895cba8d63b07c163e862b8fdd9da442fc060ae5d6b871ae321c867)
bb211951c1 (diff-f2f73b177895cba8d63b07c163e862b8fdd9da442fc060ae5d6b871ae321c867)
20e2a751f1 (diff-f2f73b177895cba8d63b07c163e862b8fdd9da442fc060ae5d6b871ae321c867)
2021-01-24 23:16:29 -05:00
doofus-01
2a8baa9590
various small fixes (#5495)
* units - set image_icon for sidebar display of Cataphract

* units - remove inactive ability description for Diversion

* add recruit/recall to event list triggering check for diversion animation (Dunefolk Falconer)
2021-01-24 16:59:54 -08:00
doofus-01
9229600b72
Sprite work (#5417)
* units - north facing bowman and troll whelp

* units - north facing standing and defense frames for dunefolk skirmisher

* units - defense and (half-hearted) dagger attack anims (SE) for poacher

* units - update footpad sprite (SE-only)

* ran wmlindent
2021-01-24 16:56:33 -08:00
Charles Dang
454bed95ce GUI2/Loading Screen: improved animation 2021-01-25 09:21:01 +11:00
Pentarctagon
47ba5b7af8
This script was never finished and never used, so delete it. 2021-01-23 12:42:34 -06:00
Andrey Bienkowski
a8a3bedc46 TSG: Add missing NOTE_DEFENSE_CAP
Three units with movement_type=mounted were missing {NOTE_DEFENSE_CAP}
2021-01-22 20:28:15 +01:00
Charles Dang
4bf5acf3f2 GUI2/Chat Log: marked text area as link-aware (fixes #5485) 2021-01-22 14:08:10 +11:00
nemaara
780a08016e
Merge pull request #5471 from hexagonrecursion/httt-side
Add side=1 in httt_utils.cfg to appease wmllint
2021-01-20 14:26:37 -05:00
Andrey Bienkowski
361a10241a Fix wmllint error: double space after sentence end 2021-01-20 16:59:09 +01:00
Andrey Bienkowski
f7c5b9c80e LOW: Don't forget to undefine local macros
Fix preprocessor warning:
warning preprocessor: Redefining macro LEAVE_BEHIND_L3 without explicit #undef at campaigns/Legend_of_Wesmere/scenarios/chapter4/13_News_from_the_Front.cfg:105
    included from campaigns/Legend_of_Wesmere/_main.cfg:18
    included from _main.cfg:38
previously defined at campaigns/Legend_of_Wesmere/scenarios/chapter3/09_Bounty_Hunters.cfg:240
    included from campaigns/Legend_of_Wesmere/_main.cfg:17
    included from _main.cfg:38
2021-01-20 15:24:34 +01:00
Andrey Bienkowski
5b7865e36f wmllint: fix textdomain errors
1. Ibanovic wants all #textdomain declrations in line 1: c10cf2b68b6

2. Several files were missing an explicit textdomain declaration.
Three of them actually have translated strings that defaulted to "wesnoth" textdomain:
- data/campaigns/World_Conquest/resources/data/training.cfg
- data/campaigns/World_Conquest/era/campaign/heroes.cfg
- data/campaigns/World_Conquest/scenarios/WC_II_scenario.cfg
2021-01-20 14:00:11 +01:00
Andrey Bienkowski
22ab2eca92 HTTT: add wmllint: recognize Kalenz Delfador Konrad Li'sar
wmllint tries to detect errors such as a scenario referencing the unit by id before it is introduced by via [recall], [unit] etc.
The definition of "before" wmllint wants to check is chronological: "does an event that introduces a unit happen before an event that references it?",
but the current implementation cheats by simply checking if the definition textually precedes the reference.

22_Return_to_Wesnoth contains two prestart events. The first prestart event defines an event that triggers on turn 4. The second prestart event introduces Kalenz, Delfador and Li'sar.
I could merge the prestart events and reorder the code to avoid the wmllint error, but since it does not actually make the code easier to read I chose a less disruptive option of simply adding "wmllint: recognize".
2021-01-19 10:00:05 -06:00
Andrey Bienkowski
6d53a2ae7e HTTT: add wmllint: recognize Simyr
wmllint tries to detect errors such as a scenario author forgetting to introduce a unit via [recall], [unit] etc and then referencing the unit by id.

Simyr is added to your recall list if you beat 02_Blackwater_Port on HARD by killing the orc leader.

In this instance the scenario author not automatically recalling Simyr is clearly intentional.
2021-01-19 09:57:30 -06:00
Andrey Bienkowski
fff94cd463 Add side=1 in httt_utils.cfg to appease wmllint
Fix the following wmllint errors:
"data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg", line 697: unit declaration without side attribute
"data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg", line 712: unit declaration without side attribute
"data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg", line 727: unit declaration without side attribute

As far as I understand this should be safe - side defaults to 1 anyway.
2021-01-19 18:39:50 +03:00
mattsc
0905ee1fe7 Fast Micro AI: fix variable name
This wouldn't have been an issue, if there weren't also a local variable of the same name in the evaluation function. The way it was though, it caused an error when trying to execute an attack by the AI leader.
2021-01-18 19:29:55 -08:00
Andrey Bienkowski
1f374dd0a7 HTTT: don't change unit id
05b_Isle_of_the_Damned was using black magic: [store_unit] plus [set_variable] to change a unit's id. This confused wmllint. This is also just unnecessarily complicated since there are two more conventional ways to refer to the same unit: role=Advisor and id=$hidden_advisor.id
2021-01-18 21:18:15 +01:00
Andrey Bienkowski
579cec4139 Fix wmllint error: no textdomain string 2021-01-18 13:58:04 -06:00
Andrey Bienkowski
26ac543d71 [wmllint] DiD: suppress: Inky speaks in his/her "die" event rather than "last breath"
It is a common mistake to have a unit speak in his/her "die" event (after the death animation is played). Wmllint tries to catch that. In this case, however, Inky does not actually die (as far as the plot is concerned) so it is a perfectly
valid stylistic choice for her to make a "Bloub" sound as she dives into the water.
2021-01-18 13:57:56 -06:00
Andrey Bienkowski
67ea5b5eed DiD: Explain the Inky encounter logic 2021-01-18 13:57:56 -06:00
Andrey Bienkowski
b155192fb3 DiD: add wmllint: recognize Jaime 2021-01-18 13:57:27 -06:00
Andrey Bienkowski
208bf55c86 Use wmllint: recognize instead of blanket ignore 2021-01-18 13:57:02 -06:00
Steve Cotton
8bff60f441 Run wmlindent on DiD's scenarios 2021-01-18 14:08:29 +01:00
Andrey Bienkowski
b9d64a63e5 Add wmllint: display on/off around multiline messsages 2021-01-18 01:09:07 -06:00
Andrey Bienkowski
92ecc63962 Silence a wmllint false positive 2021-01-18 01:09:07 -06:00
Pentarctagon
3ddb5ce313
Fix macro arguments. 2021-01-18 00:57:49 -06:00
Andrey Bienkowski
30fb6a7d96 DiD: refactor scripted experience gain
My primary motivation was internationalization: with one added string we can translate all these messages.
2021-01-17 19:57:05 +03:00
Charles Dang
248eab0267 Fixup efa330a35c04bada6ae65a522597eaf144356e98 2021-01-17 21:29:15 +11:00
Severin Glöckner
efa330a35c NR S12: move dialogue from victory event
It's not shown with :n then
2021-01-17 06:35:49 +01:00
Severin Glöckner
deb007f1b1 NR S13: use new code features
Using location_id (which accepts multiple values sice 1.15.0)
and the new macros for handling overlays and ellipses.

Side effect: the now-leaders won't have the loyal trait anmore
2021-01-17 06:35:49 +01:00
Severin Glöckner
2d94d90449 NR S13: use Sisal as fallback for Eryssa
The situation of having her but not Eryssa is new.
2021-01-17 06:35:49 +01:00
Severin Glöckner
c5bc4e9c3f NR S12+S13: let Eryssa die
She's not needed anymore.
2021-01-17 06:35:49 +01:00
Severin Glöckner
7733e55077 NR S10: Fix side 7 objectives
closes #5373
2021-01-17 06:35:49 +01:00
Severin Glöckner
4846a08c5f NR: Krash's side is always orange 2021-01-17 06:35:49 +01:00
Charles Dang
e3f8b68796 Added basic dialog definitions for the Match History viewer 2021-01-17 11:48:21 +11:00