25 Commits

Author SHA1 Message Date
Wedge009
558650bd14 Typography update for source code (in addition to .cfg data files previously reviewed). 2024-10-06 09:13:10 +11:00
nemaara
6c031223e7
Eastern Invasion: add Dalas's version to mainline (#7815)
* EI: revise entire campaign

* Fix indentation

* More indentation fix

* Remove unused projectiles

* Revert "More indentation fix"

This reverts commit b7794ee73d1672b65665015ef50e96d90457f312.

* Rename wesnoth lua pack to items

* Another round of fixes

* wowwee another round of edits

* Address some CI errors

* CI fix attempt no 2

* here comes more

* CI slowly getting fixed

* Fix terrain codes

* So many things to do

* small patch

* more more

* oops

* Split keys onto separate lines

* MORE MORE MORE

* Resolve licensing

* I like to write

* Add blood gore warning

* licensing licensing licensing

* asdkfjasliefjal

* draw draw draw draw pixels pixels

* Update data/campaigns/Eastern_Invasion/scenarios/04b_Ill_Humours.cfg

Co-authored-by: Luis Miguel Iglesias Sánchez <Luis_koopa@hotmail.com>

* Resolve some more licensing issues

* license

---------

Co-authored-by: Luis Miguel Iglesias Sánchez <Luis_koopa@hotmail.com>
2023-09-15 10:43:55 -07:00
Wedge009
461fd5fff5 Replace deprecated wesnoth.fire_event with wesnoth.game_events.fire. 2022-07-30 16:32:31 +10:00
Celtic Minstrel
4ec60b99d9 Lua: Update all mainline references to the helper module 2021-07-07 01:32:05 -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
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
Celtic Minstrel
732b7942bb Replace all references to deprecated functions in the helper module
(and remove the require if this meant it was no longer used)
2019-12-02 01:10:34 -05:00
Celtic Minstrel
24b11221cf Use wml.array_variables instead of wml.array_access.get/set 2019-11-16 13:09:04 -05:00
Celtic Minstrel
977f05d77f Lua: Replace uses of deprecated (moved) unit functions
Also backtracked the removal of wesnoth.get_recall_units, which is now available as wesnoth.units.find_on_recall - it's just more convenient than passing x=recall to wesnoth.units.find
2019-11-15 22:39:08 -05:00
Charles Dang
9a8462eff7 EI: fixed another Lua syntax error from 3783693cbe95
[ci skip]

I misread the intent of that line in the original. It was supposed to clear the
var, not set it.

(cherry-picked from commit bad574f7c8f6106e6879c14318f3fcf0ec4cc2bf)
2018-10-07 03:18:12 +00:00
Lari Nieminen
fa1e37d71d EI: Fix Lua syntax error from 3783693cbe95
[ci skip]

(cherry-picked from commit 4d86af796ca46f204f958b712465a05bdfa0de75)
2018-10-07 03:18:03 +00:00
Celtic Minstrel
08ec9017b5 Lua API: Some tweaks of the experimental wml module 2018-03-17 16:48:00 -04:00
Charles Dang
79b7e08573 Fixup 3783693cbe95 (removed a C++-ism)
[ci skip]
2018-03-16 11:26:21 +11:00
Charles Dang
3783693cbe Campaigns: cleaned up more cases of deprecated Lua API usage
[ci skip]
2018-03-16 11:23:30 +11:00
Charles Dang
b92ee187b8 Cleaned up use of deprecated APIs in campaign Lua
[ci skip]
2018-03-13 08:06:11 +11:00
Celtic Minstrel
8d4cf3cf62 Shorten requires where possible 2017-05-03 02:42:25 -04:00
Gregory A Lundberg
edacf922fb Lua upgrade: integer indices
As of version 5.3, Lua converts a number which as an integer value to add ".0" to the end.

Updating mainline to avoid the issue.
2016-10-21 23:09:51 -05:00
ln-zookeeper
087a2822d1 Fixed broken bandits code 2016-08-11 18:21:21 +03:00
Bär Halberkamp
9c3f11ac57 EI: fixed bandit code 2015-04-16 14:31:28 +02:00
Bär Halberkamp
6595778aa0 EI: Added a failsafe in the lua code 2015-04-02 19:24:13 +02:00
Bär Halberkamp
8c5a4a9d62 EI: fixed a small oversight in the bandits code 2015-04-02 18:50:43 +02:00
Bär Halberkamp
be646105f2 EI: Improved the bandits implementation a bit 2015-03-30 14:34:08 +02:00
Bär Halberkamp
244a3803c0 EI: Improved the bandit spawn code in S5 2015-03-30 14:34:07 +02:00
Bär Halberkamp
4f828b0840 EI: Rewrote the bandit events in S5 in lua 2015-03-30 02:20:13 +02:00