27824 Commits

Author SHA1 Message Date
Celtic Minstrel
1fc31c23d0 Replace all uses of get_time_stamp -> ms_since_init 2021-05-08 17:20:49 -04:00
Celtic Minstrel
7e1f3bc27f Rename get_time_stamp to ms_since_init
This better reflects what it actually does - it is not and has never been a timestamp.
2021-05-08 17:20:49 -04:00
Celtic Minstrel
a09f88c1c9 Start a Lua mathx module to hold round, shuffle, random, and a few other things 2021-05-08 17:20:47 -04:00
Celtic Minstrel
b20e226f30 Unit test to verify that [event]delayed_variable_substitution=no works 2021-05-08 17:15:02 -04:00
Celtic Minstrel
900c576fe8 Fix bug in wesnoth.map.read_location 2021-05-08 17:15:02 -04:00
Steve Cotton
df41f13e41 Rewrite the WML unit test for sighted events
The old version's [event]name=sighted had a {RETURN} statement in it,
which meant the test stopped on the first sighting. Most of the test
wasn't testing anything.
2021-05-06 01:21:59 +02:00
newfrenchy83
00452c0187
add 'ability_id_active' attribute to filter (#5739)
Add 'ability_id_active' attribute to filter

Until now, only the type of ability could be filtered with activity, and id only for unit who have ability, same if she's inactive.
2021-05-03 14:38:05 -05:00
sigurdfdragon
f67f28d7a9 Fix deprecation message 2021-05-03 11:26:40 -04:00
Steve Cotton
24e2f8f767 Whitespace fixes for no newline at end of file
The new CI script whitespace-checking script changes these, but not on Linux.
2021-05-03 11:52:40 +02:00
Steve Cotton
529d5c1a46 Run woptipng on images with bad iCCP, and associated files
The files that had bad iCC profiles were the following subset. I ran woptipng
on the files that were checked in at the same time too.
* data/core/images/portraits/monsters/woodland_boar.png
* data/core/images/portraits/undead/zombie-boar.png
* data/core/images/terrain/castle/troll/tile.png
* data/core/images/units/human-loyalists/heavyinfantry-attack-8.png
* data/core/images/units/human-outlaws/bandit-idle-1.png
* data/core/images/units/human-outlaws/bandit-idle-2.png
* data/core/images/units/human-outlaws/bandit-idle-3.png
* data/core/images/units/human-outlaws/bandit-idle-4.png
* data/core/images/units/human-outlaws/bandit-idle-5.png
* data/core/images/units/human-outlaws/bandit-idle-6.png
* data/core/images/units/human-outlaws/trapper-bow-attack1.png
* data/core/images/units/human-outlaws/trapper-bow-attack2.png
* data/core/images/units/human-outlaws/trapper-bow-attack3.png
* data/core/images/units/human-outlaws/trapper-bow-attack4.png
* data/core/images/units/human-outlaws/trapper-bow-attack5.png
* data/core/images/units/human-outlaws/trapper-bow-attack6.png
* data/core/images/units/human-outlaws/trapper-bow-attack7.png
* data/core/images/units/human-outlaws/trapper-bow-defend.png
* data/core/images/units/human-outlaws/trapper-bow.png
* data/core/images/units/human-outlaws/trapper.png
2021-05-03 10:33:40 +02:00
newfrenchy83
1cb2393b42 fix anerror 2021-05-02 19:40:48 -05:00
newfrenchy83
ad95696b4a Fix teaching_anim not implmmented in variation_id=sceptre of Httt Princes and Battle Princess
I have forget to pull this in variation scpeter of unit_type
2021-05-02 19:40:48 -05:00
Tahsin Jahin Khalid
0547941b13 [world conquest] Restored 2 instances of wml.parsed
1. removed the "cfg = cfg" thing
2. restored 2 instances of wml.parsed()

As for the wml.parsed() in line 74 of effects.lua, I chose to not re-add it as it causes an error.
2021-05-02 17:06:26 -05:00
Tahsin Jahin Khalid
45d7372e69 [world conquest] fix remaining deprecated code usage
1. Fixed an un-added entry in the changelog
2. fixed the last 2 deprecation messages
3. removed instances of `wml.parsed` as it is no longer required.
2021-05-02 17:06:26 -05:00
Pentarctagon
afded0db32
Remove extraneous translation marks from tests. 2021-04-28 13:40:56 -05: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
Elvish_Hunter
265116e1a0 wmlparser3: fixed a crash when using XML output 2021-04-27 17:54:22 +02:00
nemaara
9e4c770553 HttT: date fix again 2021-04-26 20:58:45 -04:00
Hejnewar
f027cd4900
Fix #5729 2021-04-26 18:17:47 +02:00
nemaara
ac9f6da122 HttT: fix bad time references (fixes #5740) 2021-04-26 02:20:12 -04:00
Pentarctagon
454130fd94
Fix trailing whitespace. 2021-04-25 21:58:20 -05:00
Celtic Minstrel
31421f3558
Add a Lua unit_test module only available in [test] scenarios (#5708)
It contains fire_wml_menu_item along with a set of new assert functions
2021-04-25 21:04:50 -04:00
Pentarctagon
d203b061f9
Whitespace cleanup of lua files. 2021-04-25 15:11:09 -05:00
Gunter Labes
70e2e7f4a6
Add missing closing parenthesis 2021-04-25 21:45:53 +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
Steve Cotton
93cd645205 UtBS: Use $amount instead of %d in the teaching ability
Part of #4436
2021-04-23 09:57:12 +02:00
Tahsin Jahin Khalid
0700434acb
[WC] Fix deprecated code usage and enable Dunefolk (#5727)
Fixes #5545 
Addresses #5650
2021-04-22 13:43:38 -04:00
Hejnewar
f5ea3b0906
Update code of [unstore_unit] 2021-04-22 01:32:06 +02:00
newfrenchy83
73a76a1644
fix text don't readable because duration not specified (#5725)
HttT S23: fix floating text duration
2021-04-21 15:38:38 -04:00
newfrenchy83
3db6b8b9d0 modify overwrites_specials in engine and utils.cfg macro 2021-04-20 23:30:23 -05:00
newfrenchy83
d4ce159c8d modify overwrite_specials attribute in schema 2021-04-20 23:30:23 -05:00
nemaara
1b0d63f305
Liberty S7: date fix 2021-04-19 15:17:21 -04:00
doofus-01
766760b5d2
Various fauna-related things (#5671)
* rock scorpion pincer attack anim

* New sprite graphics for piglet

* add piglet portrait

* New sprite graphics for woodland boar

* simple horn attack anim for scarab

* scarab horn attack icon
2021-04-18 18:07:39 -07:00
Elvish_Hunter
1da7675c81 GUI.pyw: fixed compatibility with Python 3.9
Fixes #5719.
2021-04-18 21:52:05 +02:00
Nils Kneuper
bfb5d568ee updated German translation credits 2021-04-18 09:48:06 +02:00
Iris Morelle
cd7a7a0972 pot and documentation update 2021-04-17 22:24:51 -04:00
nemaara
16347c3b5c Roc: add description 2021-04-16 01:55:07 -04:00
nemaara
cb5762abf2 Fire Ant: add description 2021-04-16 01:55:01 -04:00
Steve Cotton
ad1c42ca8f Make [store_reachable_locations]range=vision calculate vision
Previously it calculated max movement, and then added the adjacent hexes. This
version should correctly handle:
* units with vp different to max mp
* units with vision costs different to movement costs
* jamming by enemy units

Draft changelog entry for this:
* `[store_reachable_locations]range=vision` now calculates vision, instead of using movement costs and max movement points (issue #4179)
2021-04-16 02:05:42 +02:00
Steve Cotton
147cd90527 Move lua implementation of [store_reachable_locations] to its own file 2021-04-16 02:05:42 +02:00
Steve Cotton
adf39d3d4a Fix the indentation in test_lua_wml
This main change here is moving tags to their own line, to avoid wmlindent
bug #1397. The lua gets a manual tabs-to-spaces conversion.
2021-04-15 20:32:42 +02:00
Hejnewar
205a6c031b
Fix incorrectly set melee damage for Naga Sicarius 2021-04-15 13:41:33 +02:00
Steve Cotton
41722a6840 scenario-test: Add a right-click "show vision range" option
Make "show attack range" not overwrite the array for cleaning up
the "show movement range" command's display.

Add a label and tooltip about the enemy unit with jamming.

The new option shows the result of [store_reachable_locations]range=vision.
There are known issues with that for:
* units with vp different to mp
* units with vision costs different to movement costs
* jamming by enemy units
2021-04-15 12:58:37 +02:00
nemaara
f4af95682f Sand scuttler: update description 2021-04-15 04:20:33 -04:00
nemaara
3e54971d92 DiD: buff malin again 2021-04-15 04:16:49 -04:00
nemaara
0cca370ff5 DiD: buff Malin 2021-04-15 04:15:42 -04:00
nemaara
b8c5baaab3 TRoW: rebalance fix 2021-04-15 04:11:18 -04:00
Eric Gallager
06798cfda1
Edit "The Rise of Wesnoth" difficulty (#5603)
TRoW: edit difficulty
2021-04-15 03:58:42 -04:00
Hejnewar
b4538cb896 Wose / Monster balance update 2021-04-15 07:56:30 +02:00