Commit Graph

221 Commits

Author SHA1 Message Date
Aardvark
fbe2166c33
World Conquest: Remove hard coded trainer indices (#9408)
---------

Co-authored-by: Richard <93877353+richardalbee@users.noreply.github.com>
2025-02-23 15:37:26 -06:00
Gunter Labes
ad7a458250
Remove nonsensical comment 2025-01-14 09:38:21 +01:00
Gunter Labes
fbf43bcfc1
Typo fix 2025-01-14 09:36:58 +01:00
gfgtdf
ce262e9275 WC: use [leader] 2024-12-31 01:09:06 +01:00
gfgtdf
c1c0111d3c WC: New carryover implementation.
We now use a modified default carryover calculation,
the main advantage is it now uses the normal carryover
message on endlevel, and shows how it is calculated.
2024-12-15 05:17:57 +01:00
gfgtdf
bf4ad3bb42 WC: fix campaign abbrev
previously it was unclear what the trailing number meant,
also the order couldn't be changed in the translation.

Also the player number was shown 2 times in the savefile name,
resulting in names like 'WC1-WCII 1 -Start-Auto-Save.gz' so i
removed it from the scenario name.
2024-12-14 22:53:12 +01:00
Wedge009
558650bd14 Typography update for source code (in addition to .cfg data files previously reviewed). 2024-10-06 09:13:10 +11:00
Gunter Labes
4991005765
WC: Explain that you can also add data via resources 2024-09-08 19:54:42 +02:00
doofus-01
033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
Pentarctagon
5c3188581b
update CI to Ubuntu 24.04 (#9139) 2024-07-28 13:07:59 -05:00
Tahsin Jahin Khalid
02f9c2186c
WC: delete no longer needed todo.txt file (#9099)
* WC: delete no longer needed todo.txt file
2024-07-17 19:29:28 +06:00
gfgtdf
abb79ab055
wc: fix #9012 error when deserter list is empty (#9094)
we no longer show the deserter option if no deserters are avilable
2024-07-16 22:31:57 +02:00
Gunter Labes
fe09128ee5
WC: documentation update 2024-07-15 11:57:34 +02:00
Gunter Labes
d7da385586
WC: Remove bogus comment 2024-07-09 15:26:09 +02:00
Celtic Minstrel
058d0502e5 [Lua] Update obsolete use of [1],[2] to refer to locations, and simplify some code by leveraging the fact that any object with x,y qualifies as a location; also use moves_left for reachmaps instead of [3] 2024-05-19 12:54:35 -04:00
Celtic Minstrel
0f6fe67477 [Lua] Use wml.tag to construct WML tables 2024-05-19 12:54:35 -04:00
Discontinuum
423481d481
Fix description of World Conquest 4p (#8657) 2024-03-29 18:51:07 -05:00
Subhraman Sarkar
333b3edc42 change horizontal scrollbar mode and update changelog 2024-03-22 09:45:42 -04:00
Subhraman Sarkar
90dcf67076 fix double scrollbar bug 2024-03-22 09:45:42 -04:00
gfgtdf
c7ca36be6e
wc: fix #6513 Bezoar artifact (#8340)
* wc: fix #6513  Bezoar artifact

The item now applies the effects directly instead of using [trait]s, 
The lua code that added traits in the wc lua files didn't work, but the main reason why i preferred  this solution instead of changing the lua files is that it makes it possible to simply remove the artifact via for example [remove_object] (which wouldn't work for artifacts using traits as those are separate modifications)

The code now also adds a dummy ability so that players know that this unit has the benefits of the healthy fearless and  undead  traits.
2024-02-17 23:25:07 +01:00
P. J. McDermott
368e270bf3 Fix some spelling errors
These are not translatable strings.

Debian's lintian QA tool found the instances in code.
2024-02-15 17:27:44 -06:00
Celtic Minstrel
600c88c291 [WC] I think this was a remnant of a global variable removal...? 2024-02-13 19:32:39 -05:00
Celtic Minstrel
0ef38c82c8 [WC] Fix a broken map filter
I'm not sure what the intent was here, so I had to make a guess.
2024-02-13 19:32:29 -05:00
gfgtdf
bca7a60852
WC: Fix mapgen always spwaning 3 bonus points in first scenario 2023-12-30 21:35:27 +01:00
gfgtdf
81145470c3 wc: fix a comment 2023-12-13 17:01:28 +01:00
gfgtdf
294e9a8d5c wc: small mapgen refactor
It doesn't really make sense that the code sometimes uses the lua variable enemy_power and sometimes
the wml variable. I think the original intent was to make it always use the lua variable but then it was noticed that the lua varialbe is not available in the first scenario
2023-12-13 17:01:28 +01:00
gfgtdf
ec0457790c wc: remove unused parameter 2023-12-13 17:01:28 +01:00
Gunter Labes
5cb60d7f2f
Fix description and formatting 2023-12-05 13:34:43 +01:00
newfrenchy83
3910817cf7
add a 'replacement_type' and 'alternative_type' attribute in [damage] special or ability who modify the type of attack used (#7865)
At the suggestion of @stevecotton, I propose a special 'replacement_type' and 'alternative_type' attribute capable of modifying the type of attack used when the conditions are met.

Also make Holy water combine arcane damage with native type of weapon

Like holy water imbued ordinary weapon, it's seem logic what arcane damage dominant what if more efficient what original type(water can't altered pierce or blading of spear or sword)
2023-10-25 08:10:52 -05:00
Wedge009
94b48615f0 Use em-dash as per typography standard.
[ci skip]
2023-10-23 09:44:50 +02:00
gfgtdf
cde57bca9d
WC: fix to in 6A_Rural mapgen (#7834) 2023-10-21 18:24:12 +02:00
gfgtdf
c9e8a166aa
WC: Fix objects increasing hp not working.
The code keeps record of the previous hp to prevent unit:transform form changing it. But it reads it before the object was added which prevented the object from increasing the units hp.
2023-10-17 00:44:16 +02:00
gfgtdf
d5b7972c6f
WC: Fix error when too few artifacts are defined
Previously the lua could stop working when there were less than 9 artifacts defined in [world_conquest_data]
2023-10-17 00:34:25 +02:00
gfgtdf
8bbaba898d
WC: fix #7921 Random training per scenario
a free random training on easier difficulties should only be given in the first scenario. (Otherwise they'll accumulate to 5 free trainings at scenario 5.)
2023-10-16 23:25:13 +02:00
Gunter Labes
41ead12a14
Complete WC version removal 2023-07-18 21:32:58 +02:00
Toranks
682b89e764
WC II - Typo and translatability of Difficulty, remove Version (#7795) 2023-07-17 22:22:53 +02:00
Steve Cotton
8bc13963ae WC: change some messages when units join, and add po hints
Add the po hints that have been added to 1.16.

Drake Fighters now say "blade" instead of "sword".

Remove the response when a human finds an Ulf, because it didn't sound right as
the first thing a human says to a dwarf. The Ulf’s "a good day to die" could be
read as a Native American battlecry, and "brave words" as "words of an Indian
Brave", leaving the "little big man" to sound like a name.

Without catching the culture reference, it came across as a jibe about the
dwarf's height.

Catching the culture reference, the logic seems reversed. Why would another
dwarf use the generic form, but a human feel comfortable saying that?
2023-07-16 14:28:24 +02:00
Tahsin Jahin Khalid
60ab78c9c0
LoW/ANL/WC update instances of units/elves-wood/fighter.png 2023-06-20 14:14:15 +02:00
gfgtdf
f7140b2e44 WC: Fix epic trait raising xp
Now it only applies to amlas, which seems to be how
the code was indeded to work, we could also make it
apply to normal advancements that cost >60xp
2023-06-05 02:32:03 +02:00
gfgtdf
9804935cad wc: mapgen: move total_tiles to scenario_data 2023-04-03 03:26:10 +02:00
gfgtdf
c75fa8b4cb wc: mapgen: move get_scenario_data to seperate function
it was just a one liner but a rather complicated one
2023-04-03 03:26:10 +02:00
gfgtdf
cf19f4f686 wc: mapgen: document set_terrain function 2023-04-03 03:26:10 +02:00
Tahsin Jahin Khalid
419d6a988f WC: delete irrelevant TODO
re-added already
2023-03-17 23:00:58 +08:00
gfgtdf
35251b8556
[world conquest] Fix "Destruction mechanic line 73 bug"
As mentioned in #6411
2023-03-15 20:27:32 +01:00
Severin Glöckner
d9aa849081 WC2: remove outdated comment
closes #6216
2023-02-21 16:53:12 +01:00
Tahsin Jahin Khalid
547aab3896
WC: fix abnormal commander mechanic (#7284)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2023-02-12 10:21:27 -06:00
Steve Cotton
49ebbb9709 Make fix_whitespace complain about mixing tabs and spaces
Ensures that files either use tabs for indentation or spaces for indentation,
but don't switch between the two within the same file.

This doesn't fix the whitespace, it's a simple check to flag it up
on the assumption that it's better to use an editor or code formatter
to clean up the file.

Elsewhere in the CI we use the luacheck tool - while that can detect
mixing tabs and spaces in a single line's indent, it doesn't check for
inconsistent indentation within a file.
2023-02-05 02:22:53 +01:00
Pentarctagon
99bb65d1b3 whitespace fix. 2023-01-21 14:37:48 -06:00
Pentarctagon
fa084677c5 Add textdomain to achievements files. 2023-01-21 10:51:25 -06:00
Pentarctagon
d1465a9eb9
Add basic achievements functionality. (#7237)
* Add basic achievements functionality.

This reads the mainline achievements.cfg and then all the achievements of each installed add-on.

This is intentionally handled separately from other WML loading so that:
a) All achievements and their status are able to be displayed on the main menu right after Wesnoth starts and regardless of which add-ons are active.
b) Add-ons can add additional achievements to other content, whether UMC or mainline. For example, a modification that adds more achievements for mainline campaigns.

Marking something as achieved is handled by the new [set_achieved] tag and whether an achievement has been completed can be checked via [has_achievement].

There is no attempt to prevent people from manually editing which achievements they've accomplished.

NOTE: These are *not* in any way related to Steam achievements!
2023-01-21 10:32:45 -06:00