mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 23:49:51 +00:00

fixes #1649 . ai.synced_command could easily be used to implement all types of undeteced cheats so it was removed. As a replacement this commit adds a [custom_command] synced command that just calls wesnoth.game_events.on_synced_command which calls a lua handler that must first be set.
35 lines
604 B
INI
35 lines
604 B
INI
#textdomain wesnoth
|
|
# Main purpose of this file is to ensure that macros get read in first.
|
|
|
|
# wmlscope: set export=yes
|
|
|
|
[lua]
|
|
code=<<
|
|
wesnoth.dofile 'lua/backwards-compatibility.lua'
|
|
wesnoth.dofile 'lua/wml-tags.lua'
|
|
wesnoth.dofile 'lua/feeding.lua'
|
|
wesnoth.dofile 'lua/custom_command.lua'
|
|
>>
|
|
[/lua]
|
|
|
|
#ifndef NO_TERRAIN_GFX
|
|
{core/terrain-graphics/}
|
|
#endif
|
|
|
|
{core/macros/}
|
|
|
|
[credits_group]
|
|
{core/about.cfg}
|
|
[/credits_group]
|
|
[credits_group]
|
|
{core/about_i18n.cfg}
|
|
[/credits_group]
|
|
|
|
{core/help.cfg}
|
|
{core/hotkeys.cfg}
|
|
#ifndef NO_TERRAIN
|
|
{core/terrain.cfg}
|
|
#endif
|
|
{core/units.cfg}
|
|
{core/editor/}
|