769 Commits

Author SHA1 Message Date
Pentarctagon
5eae1b6199 Reorganize unit tests. 2022-12-21 12:30:04 -06:00
Tahsin Jahin Khalid
31a1dde0e7
[MP] elevation test: adjust scenario name and desc (#7205) 2022-12-16 14:50:46 +08:00
Steve Cotton
e3deff8bfd Make undo work again, undeprecate on_event()
Fixes #6898. The issue is that non-WML events added through the new events API
always disable undo with no equivalent of WML's `[allow_undo]`. The long-term
fix is to add a way to do that; however until that's available then listeners
for `moveto` need to use the old `on_event` API. The old `on_event` API can't
be deprecated yet, and this is enforced by our unit tests (the build fails if
there are unexpected deprecation warnings during the tests).

Reverts most of 7e234f8833282424b3535b9c334c751748f7222b. Does not revert files
that only listen for non-undoable events such as `die` or `new turn`.

Reverts the deprecation part of #5663's 8cd133263058a5df85f64988e348d2cf54d13a48.
2022-11-19 05:23:30 +01:00
Jonathan-Kelly
1ba0a11a18 Make Nightblade the default advancement for Slayer 2022-11-14 17:22:25 -05:00
Wedge009
dc2ccab119 Correct non-standard spacing.
[ci skip]
2022-11-01 22:55:07 +11:00
doofus-01
bbdb6c57ef
Change terrain codes for stone and wooden floors (#7042)
* revise I-type terrain codes so they can be filtered with wildcard

* update the few MP maps using these I-type codes

* update the few campaigm maps using these I-type codes
2022-10-08 16:04:18 -07:00
doofus-01
880183774c
1.17 elevated terrain work (#7014)
* stone border revision

* corner case transitions

* add MP example scenario/map for elevated terrain

* simplify the floodfill

* change ravine from ^Qhx to ^Qhux, for better filtering

* reorganize images
2022-10-02 20:28:03 -07:00
Celtic Minstrel
7e234f8833 Replace deprecated usages of on_event() 2022-07-18 21:56:42 -04:00
Pentarctagon
9bfd432abe Update image pages for webp extension. 2022-04-30 14:23:32 -05:00
inferno8
c8958ff4a5
Convert Isar's Cross map background images to webp format (#6254) 2022-03-25 18:56:28 -05:00
Pentarctagon
370d03ccb7 Fix luacheck warnings and add to CI.
Note the `exclude_files` in .luacheckrc should be deleted once the eventual Ubuntu 22.04 base image has an updated luacheck that supports lua 5.4.
2021-11-28 14:26:02 -06:00
doofus-01
615207c2ce 2p_Aethermaw - fix sprit decorations above fog
(cherry picked from commit 8042db88e917d3d58492cb4257d70ce5e4ddecda)
2021-10-29 11:18:35 +11:00
Pentarctagon
858f8b4248
Missed some deprecated fungus on map edges. 2021-07-31 18:46:47 -05:00
Tahsin Jahin Khalid
cc94f2f712 fixed non-existent textdomain in scenario file [IoM] 2021-06-23 10:32:10 -05:00
Celtic Minstrel
91f6bf93a4 Fix a broken deprecation and replace some deprecated uses
Fixes #5877
2021-06-20 00:59:59 -04:00
Celtic Minstrel
7f162cbd24 Lua: Rename find_vacant_tile to find_vacant_hex for naming consistency 2021-06-19 17:09:31 -04:00
Tahsin Jahin Khalid
7d8ea03433
[MP] Isle of Mists - a new 1p/2p Survival Scenario. (#5748)
1. Added a new multiplayer survival scenario.
2. Lua (similar to Dark Forecast one) code used for the enemy waves and weather change events
3. Comes with 6 weather conditions
4. Default difficulty is set at "0"
5. Has 1p/2p modes
6. 5 final waves
7. 8 difficulty levels, ranging from -30 to +60, with +60 being catered especially for veteran/skilled players.
2021-06-19 12:05:47 -05:00
Celtic Minstrel
ccb9f4f0e9 Update mainline uses of have_file and read_file 2021-05-11 14:52:21 -04:00
Celtic Minstrel
bf746a0207 Update mainline content to use the wesnoth.scenario module 2021-05-11 14:52:21 -04:00
Celtic Minstrel
05b0b7a1df Update uses of wesnoth.fire 2021-05-11 14:52:20 -04:00
Celtic Minstrel
1dccc3ad76 Update mainline content to use the mathx module 2021-05-08 17:20:49 -04:00
Steve Cotton
8e315683ae Add wesnoth.colors[name].pango_color and use it in the multiplayer turns-over dialog 2021-04-28 10:44:19 +02:00
Steve Cotton
26b3ad42a5 Multiplayer turns over dialog: stop using %d and %s in translatable strings
This should probably be changed into a table of GUI2 widgets, but this commit
is an improvement on what was here before. It removes the broken conjunct list
formatting for 3-way ties. However, it also means that there are 5 lines per
language to translate again.

Fixes #4274.
2021-04-28 09:11:29 +02:00
Severin Glöckner
e931488f0b Dark Forecast: don't modify unit movement costs
Preferrably leaving them in the vanilla version.

Closes #3891
2021-04-24 02:02:26 +02:00
Tahsin Jahin Khalid
8cf20f263b village support +1 for 2 player mode (#5)
this sort of makes Dark Forecast passable for 2 player mode. Initially, it was only passable if it was one-player-mode as one player could have 11 villages active and could get a good army built prior to the final wave.
2 player suffered from lack of resources to replace losses and would be unwinnable in some cases.
Only 2 cases where it was won in 2 player mode was when the players were of exceptionally high skill level but average skill-levelled players have yet to even win.
2021-04-05 14:02:26 -05:00
Tahsin Jahin Khalid
18b42b0439
Fix for weather change cheat in dark forecast (#5656)
Adjusted the weather change effect from side 3 turns to side 1 turns. Side 1 is never empty so it would bypass the side 3 as empty cheat which impeded weather changed.
2021-04-02 18:19:03 -05:00
Tahsin Jahin Khalid
7f9b399235
Dark Forecast Lua file comment Typo fix (#5658)
Fixed a typo in the comments and in a function name.
2021-04-02 14:51:46 -05:00
Celtic Minstrel
9d3bf196b0 Update everything to use the new wesnoth.map module
- get_terrain and set_terrain replaced with direct indexing operations
- get_map_size mostly replaced with either the iterator or an on_board call.
  Only a few cases really needed to know the size of the map for some other purpose.
- shroud and fog operations, village owner, time areas, and location filters
- get_terrain_info replaced with terrain_types table
- Map generation functions create_map and create_filter
2021-02-28 18:16:33 -05: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
e39bf8f4e5 Replace fog and shroud in map files
"../../data/multiplayer/maps/6p_Team_Survival.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_drought.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_firstsnow.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_secondsnow.map", line 2: warning, fog or shroud in map file
2021-01-14 21:16:46 +03:00
Pentarctagon
20896278b5
Fix WML schema errors. 2021-01-10 15:48:39 -06:00
Severin Glöckner
7258c3f651 MP: unique background graphics for Isar's Cross
Mainlined from the add-on "Visual Map Pack"
2020-12-07 05:06:27 +01:00
gfgtdf
b21c110f30 run wmlindent 2020-10-19 23:53:52 +02:00
Hejnewar
20e8fae7e2
Update fungus terrain in MP maps where appropriate
Fixes #5145
2020-10-05 22:39:27 -05:00
Pentarctagon
5af1f129cd Mass convert of *^Uf terrain for SP. 2020-09-15 09:26:00 -05:00
Pentarctagon
0fcf545582 Remove unused mapgen files. 2020-09-15 09:26:00 -05:00
Severin Glöckner
9cda7e7353 MP Survivals: remove quick trait for slow leaders
In PvE the player doesn't need this bonus, like he doesn't have it in campaigns either.

[ci skip]
2020-08-30 22:28:44 +02:00
Severin Glöckner
3b2cb8849e ANL: recommend lowering starting gold
closes #1149

The difficulty slider is in fact the gold setting.
bob_the_mighty suggest setting it to 75, though for new players 100 might be better.

I think the best we can get from this situation is to have it by default on 100,
but to tell players about changing the gold setting if the scenario becomes too easy for them.

[ci skip]
2020-08-30 22:28:43 +02:00
Severin Glöckner
4f76aa672b The Wildlands — map tweaks
* the waterpath in the north is now continuous
* a few more embellishments

[ci skip]
2020-08-09 11:05:25 +02:00
Severin Glöckner
c0d05dcce6 MP: 5P The Wildlands
Fix Shuffling Sides with side 5 (which has no leader)
and refactor.
[ci skip]
2020-08-09 00:44:58 +02:00
Severin Glöckner
4c899d73d6 MP: 5P The Wildlands
Place units in a way which avoids jumping too much over the map.
[ci skip]
2020-08-09 00:44:58 +02:00
Severin Glöckner
8e9d4b1f82 MP: remove Xo overlay from border tile
seems to be misplaced.

[ci skip]
2020-08-07 00:06:31 +02:00
Severin Glöckner
c256c26f5e ANL: swap side 3 & 4
They are now placed clockwise.

[ci skip]
2020-08-07 00:03:44 +02:00
Severin Glöckner
a9ded0c14f ANL: switch to new castle terrain
It's having a few more glitches, but it may cause less glitches elsewhere,
as it are »real« castles, and the player can build castes adjacent

[ci skip]
2020-08-06 23:40:21 +02:00
Severin Glöckner
353dce142e MP survival maps: swap mushroom code
going with the viually identical ones here
[ci skip]
2020-06-04 23:40:40 +02:00
Gunter Labes
fece902b41
Remove tags without effect
No use in having two adjacent heights with the same terrain or road cost/village definitions for a terrain that is not generated.

Fixes #4886
2020-05-05 17:59:48 +02:00
Hejnewar
e0820700b5
Balance changes (#4834)
* Dragonguard HP increased from 59 to 63
    * Bone Shooter HP increased from 40 to 42
    * Banebow HP increased from 50 to 52
2020-04-05 23:03:21 +02:00
nemaara
a2b787148f Wilderlands: use new encampment terrains 2020-03-22 19:17:16 -04:00
nemaara
225fa5a4a1 2p MP maps: use new encampment terrains 2020-03-22 19:12:25 -04:00
Severin Glöckner
b72ec6e654 MP Hornshark Island: move short Lua file to inline 2020-02-20 05:53:47 +01:00