27879 Commits

Author SHA1 Message Date
Celtic Minstrel
3568b5ff66 An easier way of setting special notes in the most common use-case (abilities and weapon specials)
Rebased version of e6c58fc35cc398d70f31817f8b3ba783bfa08a6d, with merge conflicts resolved.
2021-06-01 14:29:57 +02:00
newfrenchy83
128869d897
fix teleport message. (#5824)
Fix #5816 issue . 04455c0 commit forget second owner and unit.side in formula.
2021-05-31 13:45:28 -04:00
doofus-01
f19d4e49ea
add items from Blarumyrran and run woptipng on the directory (#5821) 2021-05-30 13:18:17 -07:00
Steve Cotton
c1cbc53353 AToTB S02: The necromancer is leaving, not waiting for reinforcements
Also change a line from the elves, so that it changes from sympathy to defense
instead of a sudden swing from sympathy to aggression.
2021-05-30 15:02:20 +02:00
doofus-01
94241857e2
Last new terrains for 1.16 (#5789)
* adding snowy pine and dead oak variations of great tree terrain

* Icy cobbles (Rra) terrain
2021-05-29 21:30:39 -07:00
doofus-01
e97d86fa1d
Fire Wraith and Jinn (#5790)
* initial commit of Fire Wraith

* initial Jinn revision
2021-05-29 20:44:08 -07:00
Gunter Labes
c94bfcf117
Typo fix 2021-05-29 23:18:59 +02:00
Celtic Minstrel
04455c01b4 Fix deprecated WFL side number usage
Fixes #5816
2021-05-29 11:23:04 -04:00
newfrenchy83
bf6b09007c
add 'unslowable' and 'unpetrifiable' status (#5788) 2021-05-27 13:35:49 -04:00
newfrenchy83
8cac6af25a replace deprecated special= by special_id/type in Utbs and scenario-test 2021-05-26 18:30:06 -05:00
Iris Morelle
e147af8db1 pot and documentation update
CC #5797
2021-05-22 22:22:47 -04:00
doofus-01
faac6939f4
adding seahorse graphics (#5786)
* adding seahorse portrait and animation frames
2021-05-22 18:43:12 -07:00
mattsc
0a56a1af5d ai_helper.lua: remove unused variable 2021-05-22 13:33:50 -07:00
Iris Morelle
affb15fbac freenode suffered a horrible accident, we're moving to Libera.Chat
The problem is that right now Libera.Chat does not have a web chat
interface, and no guarantee as to what its URLs are gonna be like
; although staff have said they're probably gonna stick to the same stack
as before so we might end up with very similar looking URLs.

For the time being, we have to get rid of the webchat URLs. They will be
missed a bit. Maybe.

Before anybody asks, yes, I am aware of the po comments in German
translation catalogues including a freenode IRC protocol URL. If I do
anything about it now, somebody will helpfully revert my changes during
a message catalogue merge (it happened some time ago). So, not touching
those until release time.

Also nobody cares about Travis anymore. It's dead cruft, just leave it
alone. (What on earth is that massive base64 string anyway?)

CC #5797
2021-05-21 05:20:44 -04:00
Steve Cotton
81ac9cc661 Scenario editor help: remove the warning about 1.14 bugs
The editor/help.cfg file was kept in sync between 1.14 and 1.16, it's now time
for 1.16-specific changes, starting with dropping this warning.
2021-05-19 06:36:29 +02:00
Celtic Minstrel
1122ed00fb Fix broken global_vars table 2021-05-17 20:35:27 -04:00
Celtic Minstrel
49bc5cc6db Fix missing deprecation for wesnoth.random 2021-05-17 19:35:06 -04:00
Pentarctagon
7b92aa3a8b
Add :fps file creation to the help+man page. 2021-05-17 10:51:37 -05:00
Wedge009
a833a55614 Correct spelling error 'bretheren' 2021-05-17 09:54:38 +10:00
doofus-01
ca334be4fd
SotA - update walking corpses to mesh with mainline (#5791) 2021-05-16 15:11:46 -07:00
Iris Morelle
98b4c9c73d pot and documentation update 2021-05-15 22:07:59 -04:00
Steve Cotton
f7f58613f6 Filtering by tags in the add-on manager
The existing PblWML specification includes a comma-separated list of tags.
Until now there are no official tag names, but some of the 1.14 add-ons already
have some unofficial ones. If this feature is included in 1.16 then I assume
many UMC authors will use the newly-official tags.

For a larger add-on list than the dev server has, use port 15014 which will
connect to the 1.14 server instead (in the connect dialog change the address to
addons.wesnoth.org:15014).
2021-05-16 00:53:20 +02:00
Celtic Minstrel
bf318a6e23
math.random wasn't even supposed to be deprecated at all 2021-05-15 17:31:12 -04:00
Celtic Minstrel
cc42e00e4b Fix a deprecation typo 2021-05-15 13:32:40 -04:00
Steve Cotton
7f53aa08a5 Add-ons manager: show tags in the details panel
Show the contents of PblWML's "tags" attribute in the add-ons dialog. They're
shown at the bottom of the right-hand panel (only if the window size is large
enough to trigger that dialog's two-panel layout).
2021-05-15 17:18:18 +02:00
Steve Cotton
8120473254 Add-ons manager: Move feedback to the top of the details list 2021-05-15 17:18:18 +02:00
Steve Cotton
7334cc97c9 Credits: move myself to Programming, add Sean Yeh, update Astrid
* Move myself to the programming section
* Add Sean Yeh to the misc section
* Finish 287ec15c101b's update of Astrid's credits

[ci skip]
2021-05-14 01:35:48 +02:00
Celtic Minstrel
eab8645e90 Fix incorrect deprecation wrapper for wesnoth.color_adjust
The source function wasn't public API, but it can't hurt to make it work.
2021-05-13 19:22:31 -04:00
Steve Cotton
c560b0efab Add attribute apply_to_vision to [effect]apply_to=movement
When processing [effect]apply_to=movement, if apply_to_vision is 'yes'
(which is the default) then the vision points will change by the same amount.
Previously, it sometimes affected vision and sometimes didn't; for most cases
where it makes a difference, I expect it to be a change from unanticipated
behavior to expected behavior.

Please refer to the new unit test added in this commit for more detailed docs;
that test is also a rough draft for the Wiki update needed when this merges.

The reason it sometimes affected vision was that the special value of -1 vision
points was interpreted as "use the value of the max movement points instead".
The special value of -1 is still supported and frequently used, and refactor that
is out of scope for this commit - it's easy to check when the code path changed
in this commit is used, however it's considerably more complex to find all
routes that create a unit with vision set to -1.

I'm expecting one add-on, Rebirth In Nature, to need a large update for this;
as well as a trivial change needed to the Add Creature Pack.

There are several mods that have their own handling for vision, recalculate the
values frequently, and are expected to continue working as before, as they'll
just overwrite any changes that the engine makes.
* Proper Flying Mod / Proper Vision Mod
* LotI
* Blessed Altar Mod
* Shards Era's `CALCULATE_WEAPONS_ONLY` macro
* Castle of Evil Spirit

Rebirth In Nature is an RPG-style campaign that expects the player's unit to
have vision separated from movement along with right-click menus that change
the character's movement, this will probably need `apply_to_vision=no` in
many places. OTOH, its `item_id=mobility` uses `apply_to=movement` followed by
`apply_to=vision` to implement in 1.14 what this change will make default
behavior in 1.16.

There are a few sharpshooter units which have vision better than their
movement. If given a buff which boosts their movement, this will give
them a buff to vision too; likely a change towards expected behavior.
* Archaic Era's Royal Ranger
* Ageless Era's Royal Ranger and Dwarvish Forest Sniper
* Eastern Europe at War's Yacht and Great Yacht
* Era of More Units's Lone Wolf
* Southernerns has several sharpshooters
* WWII Era has several sharpshooters
* War of Dominions has some guard towers with very low movement

Silver Age has abilities that modify vision based on time-of-day, but unlike
the Proper Flying Mod and LotI these are done by adding and removing objects
that add or subtract one vision point, these should be unaffected by this
change. Unrelated to that, it declares values for `[unit_type]vision=` even
when the value is the same as max moves - like the sharpshooters this means
that buffs to their movement wouldn't have buffed their vision but now do.

There are few units with vision less than movement. Generally these seem to be
missile weapons that are represented as units, and they probably won't meet any
apply_to=movement statements - even if a movement power-up is available, the
player would probably choose a different unit.

The Add Creature Pack has two creatures (the Cactose Elder and Carnivore Fatal
Plant) that have reduced vision, along with AMLAs that increase those units'
movement; these AMLAs will need to use `apply_to_vision=no`. These two
creatures are used in Castle of Evil Spirit, but they won't get enough
experience to get an AMLA there.

Fixes #3356.
2021-05-13 18:02:36 +02:00
Iris Morelle
b8fbdbbde6 Update Czech translation credits 2021-05-12 18:16:12 -04:00
Steve Cotton
6a1d7cf385 Credits: hide the blank section for Friulian
When an [about] section has a title but no [entry] tags, it's automatically
hidden in the credits. The entry with name="" was causing the title to show
up with a blank section under it.

[ci skip]
2021-05-12 16:28:04 +02:00
Steve Cotton
1bc7378c0d Run woptipng on the new horses
57 of 57 files optimized, 678061 bytes reduced to 586300 bytes; -91761 bytes, -13.53%
This was running with the -t0 option, so that it considers any reduction good, even
if it's less than 10% on the big portrait images.
2021-05-12 15:33:20 +02:00
Celtic Minstrel
6584302d41
Merge pull request #5537 from wesnoth/lua_reorg
Various Lua reorganization work
2021-05-11 19:12:40 -04:00
Celtic Minstrel
0970880910 whitespace fixes 2021-05-11 14:52:22 -04:00
Celtic Minstrel
574bc1a36e Resolve [terrain_mask]mask_file= relative to the [binary_path] like map_file= is 2021-05-11 14:52:22 -04:00
Celtic Minstrel
ccb9f4f0e9 Update mainline uses of have_file and read_file 2021-05-11 14:52:21 -04:00
Celtic Minstrel
45cb8dc428 Add a filesystem module
This currently contains have_file, read_file, canonical_path, get_image_size, and new functions that work with binary_path files.
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
1410b5cef9 Allow accessing variables through the new APIs in the mapgen kernel
This also reverses the deprecation of wml.tovconfig and friends in the mapgen kernel.
2021-05-11 14:52:20 -04:00
Celtic Minstrel
05b0b7a1df Update uses of wesnoth.fire 2021-05-11 14:52:20 -04:00
Celtic Minstrel
e8381ea9da Update uses of eval_conditional 2021-05-11 14:52:20 -04:00
Celtic Minstrel
2ea92baa13 Move some more functions to the wml module
- eval_conditional and fire
- the internal set|get_variable functions
2021-05-11 14:52:20 -04:00
Celtic Minstrel
603ecdfb99 Move the deprecation for wesnoth.modify_ai to Lua so that it honours --strict-lua 2021-05-11 14:52:19 -04:00
Celtic Minstrel
9bf189a615 Move wesnoth.create_side -> wesnoth.sides.create 2021-05-11 14:52:19 -04:00
Celtic Minstrel
1205e3fd25 Move the Lua global variable helpers from WC to a new "experimental" module 2021-05-11 14:52:19 -04:00
Celtic Minstrel
c88e60b98e Now color_adjust takes three arguments instead of a config
Consider it part of the public API now.
2021-05-11 14:52:19 -04:00
Celtic Minstrel
ea5367de17 Move create_animator and create_weapon into the units module 2021-05-11 14:52:18 -04:00
Celtic Minstrel
7b2ceb863c Move open_help to the gui module (as show_help)
This also exposes it in kernels besides the game kernel.
2021-05-11 14:52:18 -04:00
Celtic Minstrel
6e9826cfcd Update mainline content to use the wesnoth.audio module 2021-05-11 14:52:18 -04:00
Celtic Minstrel
dddd551765 Add an audio module 2021-05-11 14:52:17 -04:00