28207 Commits

Author SHA1 Message Date
Wedge009
1b48ace4f3
Avoid use of 'cool' and 'guys' (closes #6107) (#6108)
Avoid use of 'cool' and 'guys' (closes #6107)

Have left 'guys' in Camerin's lines as it's justifiable in his informal crazy talk - Northern Rebirth is supposed to be rather informal in parts and light-hearted in tone.

[ci skip]
2021-09-20 15:50:26 +10:00
Wedge009
4c9e016fa3 Clear dehydration status on victory (resolves #5687)
Even though units are not dehydrated in subsequent scenarios, the dehydration icon may otherwise still appear in the side-bar without this.
2021-09-19 14:48:51 +10:00
Wedge009
5f3382e8d8 Make the team Eryssa leads (if alive) have consistent colour (resolves #5375) 2021-09-18 12:23:37 +10:00
Wedge009
b5fa99c5a3 Correct inconsistency in Ring description (resolves #6043)
Otherwise contradicts desert mechanic explanation: '...at the *beginning* of each your turns, every unit... will suffer from thirst...'
2021-09-18 10:24:56 +10:00
Wedge009
2a1a53f211 LoW S4: Avoid use of 'men' with respect to female elves (resolves #4880)
See issue #4880 for discussion.
2021-09-18 10:24:34 +10:00
newfrenchy83
304b7d15e9
Replace steadfast with resistance abilities special for Garak (#6075)
if Garak have 0% or -10% resistance only then steadfeast don't usable here.
2021-09-17 16:28:59 -05:00
Pentarctagon
a8c9dc4847
Specify a non-zero value for nplayers.
Fixes #6077
2021-09-16 22:48:41 -05:00
Wedge009
9941ee2258 Use existing macro to avoid situations where Nym's otherwise-mute Dust Devil pet might speak.
Resolves #4892.
2021-09-17 12:45:54 +10:00
Wedge009
20fd6d80ba Clarify objectives (resolves #5608)
According to the bonus objective as it stands, it should be possible to end the scenario early by simply destroying the 'generator' stones even if leaving a few skeletons around.
However, the way victory condition is established simply by counting the number of enemy units at the start of a turn - if there are no units left, then the stones are assumed to be destroyed. (No generator stones active -> no enemy units)
As a work-around, simply update the objectives to make it clear that all enemies need to be eliminated for victory to be achieved.
2021-09-17 08:41:32 +10:00
Steve Cotton
f8a41624e3 UtBS: Remove leading whitespace from Ethereal Shadow's special note
The Ethereal Nightgaunt's equivalent note was already fixed in
f94d0bb80a425b02873f13e67ea856151a05ae6f.
2021-09-15 20:03:15 +02:00
Wedge009
3fcba6aa1c Replace 'straight' apostrophes with 'curly' or 'typesetter' apostrophes or quotes as per https://wiki.wesnoth.org/Typography_Style_Guide
[ci skip]
2021-09-15 16:26:56 +10:00
Pentarctagon
64613637bf
.ogg -> .wav 2021-09-10 11:24:44 -05:00
nemaara
6c78d376fe
UtBS S4: reduce difficulty 2021-09-06 16:52:45 -04:00
Steve Cotton
dbc7c5e984 WC: Add a WC_ prefix to defines with generic names
Macros with very generic names such as "STR_CASTLE" were defined and not
undefined. This prefixes all of them to be WC_STR_CASTLE, etc.

Either fixes or reduces the severity of #6062.

(cherry picked from commit d3d21e59ee797cfe9eecd50aabae10a353547328)
2021-09-06 19:53:17 +02:00
Wedge009
5ba9620ae3 Rephrase #6060 as per suggestion from @CelticMinstrel. 2021-09-06 14:36:29 +10:00
Wedge009
60e52a61d9 Avoid contemporary phrasing
Introduced in #5382, discussion seems to agree that we should avoid this.
2021-09-05 18:30:24 +10:00
Wedge009
71ebeb8eb4 Correct typo.
This string appears to be untouched for 13 years so hard to ask for the original intent but it doesn't appear to be an intentional attempt to sound archaic.
2021-09-05 14:00:17 +10:00
Celtic Minstrel
ce9bea0537 AI: Add an example of using [micro_ai] in [side][ai] 2021-09-04 22:20:28 -04:00
Celtic Minstrel
2d95c0f7d3 AI: Convert the FormulaAI example scenario to do all the same things using Lua
- Unit formulas are replaced by inline MicroAIs or candidate actions placed in the unit's [ai] tag.
  - The stationed_guardian MicroAI was chosen as the closest match to the guardian FormulaAI. It's not a perfect fit, but it's pretty close.
  - The goto and patrol MicroAIs are fairly obvious substitutes for the respective unit formulas.
  - The priority test in unit formulas is replaced by fairly basic inline non-external CAs with differing scores.
- The side formulas (opening.fai) have been converted to a separate Lua stage using a new opening.lua. However, that's only a partial conversion. The move and attack functionalities of opening.fai are missing from opening.lua; instead the built-in move, move leader to keep, and combat CAs are used.
- The scouting FormulaAI CA has been ported to Lua. It remains a very basic AI, probably not well-suited to genera use.
- The level up attack FormulaAI CA has been ported to Lua. Like the new scouting CA, this is mostly intended to serve as an example.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
98b91c9d0f AI: [micro_ai]side= can now take a list
Closes #6023
2021-09-04 22:20:28 -04:00
Celtic Minstrel
5d70dd9aca Lua: Add a new ai_helper debug function to print a simulate_combat HP distribution more succinctly 2021-09-04 22:20:28 -04:00
Celtic Minstrel
ff6894cee8 Lua API: Add a wesnoth.type() function
This checks both the Lua type and the metatable type to return a single unified result.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
e9465fa03e Lua API: Add alternative version of map function to be used on arrays 2021-09-04 22:20:28 -04:00
Celtic Minstrel
b22c3b595c Lua API: Fix functional.map returning the wrong answer if used on a table that contains numeric keys but is not strictly an array 2021-09-04 22:20:28 -04:00
Celtic Minstrel
bedc25fb56 Lua API: location_set:to_pairs now returns named tuples 2021-09-04 22:20:28 -04:00
Celtic Minstrel
35fce3fa3b Lua API: Fix an error in the terrain hex API
Attempting to access a non-string key was an error.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
4837452dd7 Lua API: Add new location_set function to convert to or from a Lua map
This enables a location set to be passed to map functions in the functional module.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
440dbbd0ad Lua API: The value function is now optional in functional.choose[_map]
By default, the functions now use the value taken directly from the map or array.
In addition, if a string or other non-functional value is passed, it's used as a key on the value.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
2c040ecaa7 Lua: Fix console pretty-print output not showing zero or negative keys in tables 2021-09-04 22:20:28 -04:00
Celtic Minstrel
9ad9833789 AI: Support [unit][ai][candidate_action]
This is essentially a syntax sugar for adding a candidate action filtered to only run for that single unit.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
880ef29075 AI: Support [unit][ai][micro_ai] 2021-09-04 22:20:28 -04:00
Celtic Minstrel
477a871c21 AI: Support [side][ai][micro_ai]
Closes #5910
2021-09-04 22:20:28 -04:00
Celtic Minstrel
9fdaea5893 AI: Fix error in stationed_guardian 2021-09-04 22:20:28 -04:00
Celtic Minstrel
59c9be1238 Schema: Add [candidate_action][filter_own] 2021-09-04 22:20:28 -04:00
Pentarctagon
5431810b62
Also re-enable WC on the master branch. 2021-09-02 14:52:56 -05:00
nemaara
ef0da66ec9
SotBE S13: rebalance scenario 2021-09-02 02:52:10 -04:00
Pentarctagon
545e5ffa29
Fixup WC schema validation failures. 2021-09-01 19:41:53 -05:00
mattsc
b73078884c Messenger MAI: fix bug of own units blocking waypoint
ignore_own_units=true was accidentally dropped when adding [avoid] tag functionality to the Micro AI in a60736b6c7
2021-09-01 08:49:54 -07:00
Steve Cotton
551357f48b Fix an off-by-one in mapgen's x and y filters, and add unit tests
Fixes the currently suspected root cause of #5108, but requires further testing
to confirm that it fixes that issue.

Closes #6501 (the question of how to test the mapgen filter).

(cherry picked from commit 30f50bac681fda1566f5cee5aad7be6b65cb0fdb)
2021-09-01 15:48:32 +02:00
Tahsin Jahin Khalid
19b38fe249
[world conquest] [master] [lua] Check for wc2_scenario value before executing wc2_start_units function (#6052)
What this does is just checks the value of wc2_scenario before executing the function, and executes it for the first scenario only as intended.
2021-08-31 10:36:19 -05:00
Steve Cotton
6ad33af556 UtBS S02: Don't move Nym if she's already adjacent to the bottle
(cherry picked from commit 8919c2e9482b6068db3f16b708628d7c5ba89ecd)
2021-08-26 14:21:13 +02:00
Steve Cotton
6b6eb8a35b WC: End the campaign at the end of the final scenario
Fixes the campaign part of #5891.

(cherry picked from commit 9d32c7703577e9afa86e75e4e1f3b4646a3ec17a)
2021-08-24 10:43:19 +02:00
Celtic Minstrel
9daa10a9f2
Lua: Fix deprecated end_text references in core 2021-08-23 09:22:08 -04:00
kabachuha
536d6a226c HttT: add gendered variants to item pickup prompts
Should help to address the issue with gendered verb forms or noun cases in some languages as described in #4436 . This reuses the same preexisting mechanism as in the latter part of httt_utils.cfg.
2021-08-21 13:11:47 +03:00
Tahsin Jahin Khalid
1dd447ce5d [world conquest] replaced khalifate unit types with dunefolk unit types
I have also removed one mention of "Dune Piercer", which is non-existent unit, and substituted it with "Dune Rider".
2021-08-17 17:19:39 -05:00
kabachuha
959f534d19 Update Russian translation credits 2021-08-17 22:41:32 +03:00
kabachuha
e7f3899541 Updated my (kabachuha's) entry in the credits 2021-08-17 22:38:22 +03:00
Hejnewar
5a316bc5ca
Update Polish translation credits 2021-08-17 16:03:56 +02:00
Steve Cotton
1d8225d6b6 UtBS S09: Reveal the boss of the scenario at the end of part 1
This foreshadows that the player will need to attack the north-west after
defeating the north-east enemy, which is a bit fairer to anyone playing this
scenario for the first time.

Removes a now-unused string (Darius' pre-sacrifice speech). There are no new
strings here, the others are just being moved around.

For clearing shroud, change to using radius= because clearing a circle looks
better than clearing a square.

There's no significance to whether the new plan is "Plan B" or "Plan C" - back
in Wesnoth 1.10 it seems to have been dependent on whether all the merfolk had
been rescued.

Fixes issue #5540 about Hekuba spawning on a water hex.

(cherry picked from commit 25163c06a258b2a9f4627a1345a83f52447165dd)
2021-08-17 15:32:27 +02:00
Tahsin Jahin Khalid
d19c137d65
[world conquest] World Conquest Era is only available for the WC campaign
Until a proper solution is found for #5228 , this will have to do. It suppresses the appearance of the era in the era selection list for other scenarios.
Hmm, I guess the [campaign] tag should support the allow_era= key in future but for the moment, this will do.
2021-08-16 23:05:18 -05:00