Celtic Minstrel
1fc31c23d0
Replace all uses of get_time_stamp -> ms_since_init
2021-05-08 17:20:49 -04:00
Pentarctagon
d203b061f9
Whitespace cleanup of lua files.
2021-04-25 15:11:09 -05:00
Celtic Minstrel
4b2599864a
Add [set_variable]min|max= to calculate an extremum value
2020-12-28 15:56:36 -05:00
Celtic Minstrel
927fcbfb47
Add [set_variable]reverse=yes for string reversal operation
2020-12-28 15:56:36 -05:00
Celtic Minstrel
24d8a249fa
Fix [set_variable][join] failing on boolean values
2020-10-12 15:37:37 -04: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
f6b6854c8d
Support [set/clear_variable] inside [modify_unit/side]
2019-11-11 22:29:26 -05:00
mattsc
0e017d9f7c
Lua code: replace deprecated wesnoth.set_variable() calls
...
(cherry-picked from commit ce7faae4f4
)
2018-10-07 03:21:07 +00:00
mattsc
05d5afa6a9
Lua code: replace deprecated wesnoth.get_variable() calls
...
(cherry-picked from commit f1764d182f
)
2018-10-07 03:21:06 +00:00
Celtic Minstrel
b35a7f7352
Support root=cube and root=int in [set_variable]
...
(cherry-picked from commit 7a3d6f958a
)
2018-10-07 03:18:39 +00:00
Celtic Minstrel
52d3b7bb6a
Support [set_variable]round=trunc
...
(cherry-picked from commit beb5dc75aa
)
2018-10-07 03:18:38 +00:00
Celtic Minstrel
08ec9017b5
Lua API: Some tweaks of the experimental wml module
2018-03-17 16:48:00 -04:00
Charles Dang
0103959c36
Cleaned up deprecated API usage in core Lua
...
[ci skip]
2018-03-13 16:55:36 +11:00
Celtic Minstrel
aa0a3bebd1
Add suffix= and prefix= operations to [set_variable]
2018-03-04 22:03:16 -05:00
Charles Dang
c8abb8d5d9
Add formula= option to [set_variable] (change by @celticminstrel)
...
[ci skip]
2018-02-02 15:40:44 +11:00
vgaming
728204665c
fix code problems found by luacheck ( #2388 )
...
fix code problems found by luacheck
Second iteration of the process, now handling data/lua/wml/*.lua
luacheck command used to find bugs:
luacheck ./*.lua --globals wesnoth wml --codes --ignore 542 213
Additionally, error code 211 (unused variables) could be ignored,
as using underscore convention `_` is controversial in
wesnoth ( see https://github.com/wesnoth/wesnoth/pull/2380#discussion_r162519341 )
Actual bugs found:
* items.lua, access of global `write_name` instead of local `cfg.write_name`
* kill.lua, typo `primary_unit` -> `primary`
* bad code style: global `i` instead of local `i`
(would conflict with 3-rd party code if it would use global `i`, too)
2018-01-23 13:35:04 -06:00
Celtic Minstrel
0ac01c7622
Fix [set_variable][join] not working with translatable strings ( fixes #1682 )
2017-05-10 18:57:07 -04:00
Celtic Minstrel
e1233fd0f2
Split several of the larger WML tags into their own file
2017-05-03 02:43:22 -04:00