Commit graph

11471 commits

Author SHA1 Message Date
Eric Gallager
b2baa10f96
Edit Scepter of Fire difficulty (#5524)
* Edit SoF difficulty

apply patches from https://github.com/cooljeanius/wesnoth_mods/tree/master/campaigns/Sceptre_Of_Fire
2021-02-21 18:15:45 -05:00
nemaara
ed1ad2470b DM: rebalance pass 2021-02-21 16:39:12 -05:00
Steve Cotton
93de411d2f Fixup WC2 validation (combination of 41b2b0b with e47b759)
The combination of disabling and validating WC2 meant that the build failed,
so add another #def that will enable it for validation.
2021-02-21 18:34:40 +01:00
Celtic Minstrel
fd95180b8a WC: Found one more invalid use of split 2021-02-20 20:06:49 -05:00
Iris Morelle
624f7d1363 wc: Use mainline's "Close" string for the help system OK button 2021-02-20 19:53:37 -03:00
Celtic Minstrel
9e0914ebfa WC: A few more little fixes 2021-02-20 17:47:51 -05:00
Celtic Minstrel
3efe2973e8 WC: Minor improvements to pickup dialog
- Add some padding
- No need to say the key shortcuts
2021-02-20 17:47:51 -05:00
Celtic Minstrel
1cbd2b6ef7 WC: Fix broken use of map_split
One use-case of wc2_utils.split_to_set was different and not directly compatible with map_split
2021-02-20 16:47:19 -05:00
Celtic Minstrel
5bc101104a WC: Use the Markov Chain generator for names 2021-02-20 16:29:25 -05:00
Celtic Minstrel
6865cca0f1 I have no idea how that got mangled like that 2021-02-20 16:21:12 -05:00
Celtic Minstrel
22fe1e9b71 WC: Update a bunch of deprecated things 2021-02-20 16:12:49 -05:00
Pentarctagon
e47b75940f
Disable World Conquest pending removal or a maintainer stepping forward. 2021-02-20 13:29:14 -06:00
Celtic Minstrel
56bdd42815
Fix segfaults and a few other issues in wesnoth.find_path
Co-authored-by: mattsc
2021-02-18 22:15:31 -06:00
newfrenchy83
05b2ea2262
Extend special_id_active and special_type_active to account for abilities used as specials 2021-02-18 18:19:35 -06:00
doofus-01
d435ec3d0b campaigns - Add flood water to UtBS S8 2021-02-15 10:26:36 -08:00
nemaara
f179fdb35f TRoW: use background 2021-02-14 22:24:11 -05:00
nemaara
565fae7c5b NR: use background 2021-02-14 22:16:16 -05:00
nemaara
157ed152e7 Liberty: use background 2021-02-14 22:13:19 -05:00
nemaara
b6be6c8243 AToTB: use background instead of image 2021-02-14 22:06:06 -05:00
nemaara
3d08a2a0db DiD: use background instead of image 2021-02-14 21:54:33 -05:00
nemaara
e238f6e9e0 TRoW: rebalance pass 2021-02-14 21:38:49 -05:00
Iris Morelle
e12f08f58d UtBS: Revert incomplete gender swap in scenario 9
No need to break UMC for the sake of historical accuracy.
2021-02-14 23:30:54 -03:00
Steve Cotton
4a43d00522 Show a two-color tennis ball orb for the disengaged state (#5155)
As the disengaged state is part-way between the "partial" and "moved" states,
the orb has parts in each color. On the minimap these units are shown in the
partial color (which is also the color that would be used before this change).

This will match the mounted Quenoth units' "disengage" skill, when they
can still move but can't attack. It should also trigger for some UMC abilities
that get extra moves after a character attacks.

During testing, I found that TSG allows some of the bandits to attack on the
first turn of the bandit branch. There's no gameplay change there, but the orbs
make it much clearer that some units can still attack.

I think there are already too many preferences for orbs, so reused the existing
settings for the colors. A new "show disengaged orb" preference is added, which
when disabled shows the old partial orb instead.

Update the orb and ellipse sections of doc/manual/.

Notes about how I created the new orb image:

* create a color range to_ellipse_red with rgb=FF0000,FF0000,000000,FF0000
* wesnoth --render-image 'misc/orb.png~RC(magenta>to_ellipse_red)' images/misc/orb-ellipse-red.png
* open the orb.png and orb-ellipse-red.png images as layers in Gimp, add a layer mask to both of them
* use the layer mask to get each pixel from exactly one of the layers
2021-02-13 18:28:33 +01:00
Steve Cotton
1d90f704b4 DM S19: Change one more "un-life" to "unlife" 2021-02-10 10:27:41 +01:00
Andrey Bienkowski
5d344526b0
Fix several typos in wml (#5525)
* Fix month typo and add months to dictionary

* typo s/cuttle fish/cuttlefish/

The phrase "cuttle fish" is not in wiktionary.org. The unit id used in WML is left as-is ("Cuttle Fish").

* typo s/carvans/caravans/

* add spelling ol’; fix typo s/ol/ol’/

* fix typo s/alloting/allotting/

* Typo? s/movepoints/movement points/

* Typo s/critized/criticized/

* Typo: s/un-life/unlife/

* DW: typo: s/veterens/veterans/

* SoF: typo: s/fulfil/fulfill/

* SoF typo: s/Thursagen/Thursagan/

* SotA typo: s/permanantly/permanently/

* SotA: possible typo s/Rastaban/Ras-Tabahn/

* THoT: typo s/Aiglondor/Aiglondur/

* Use a typographic-style quotation mark

* Undo month name change

* Change spelling un-life -> unlife
2021-02-10 10:23:12 +01:00
Andrey Bienkowski
80d0783677 NR S13a: reduce Hamel's gold 2021-02-08 12:13:42 +03:00
Andrey Bienkowski
7754f3159b NR S13a: Change Hamel's side from AI to human 2021-02-07 15:53:28 +03:00
Eric Gallager
6ad4ee9b7b
Legend of Wesmere: update Cliffs of Thoria difficulty (#5497)
LoW S10: reduce difficulty
2021-02-07 04:50:35 -05: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
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
Eric Gallager
efefcd2284
Tweak Eastern Invasion difficulty (#5496)
EI: small tweaks
2021-01-26 03:49:58 -05: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
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
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: c10cf2b68b

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
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