mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 11:50:35 +00:00
expanded wesnoth.races to return the WML object...
...a race was constructed from via the __cfg field (FR bug #18362)
This commit is contained in:
parent
2b27d38f8b
commit
5f4723b6d9
@ -29,6 +29,8 @@ Version 1.9.8+svn:
|
||||
Indonesian, Latin, Macedonian, Old English, Russian, Vietnamese
|
||||
* Lua API:
|
||||
* Added: function wesnoth.set_dialog_active (patch #2767)
|
||||
* Expanded wesnoth.races entries to return the wml object a race was constructed
|
||||
from via the __cfg field.
|
||||
* Multiplayer:
|
||||
* Updated maps: Aethermaw, Hornshark Island, Sablestone Delta, Thousand
|
||||
Stings Garrison
|
||||
|
@ -901,6 +901,7 @@ static int impl_race_get(lua_State* L)
|
||||
return_int_attrib("num_traits", race.num_traits());
|
||||
return_tstring_attrib("plural_name", race.plural_name());
|
||||
return_bool_attrib("ignore_global_traits", !race.uses_global_traits());
|
||||
return_cfgref_attrib("__cfg", race.get_cfg());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user