mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Also init dependencies of non rule form expand_keywords
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@989 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -314,6 +314,7 @@ SCRIPT_FUNCTION(sort_list) {
|
||||
|
||||
// ----------------------------------------------------------------------------- : Keywords
|
||||
|
||||
|
||||
SCRIPT_RULE_2_N_DEP(expand_keywords, ScriptValueP, _("default expand"), default_expand,
|
||||
ScriptValueP, _("combine"), combine) {
|
||||
SCRIPT_PARAM_C(String, input);
|
||||
@@ -338,7 +339,7 @@ SCRIPT_RULE_2_DEPENDENCIES(expand_keywords) {
|
||||
combine ->dependencies(ctx, dep);
|
||||
SCRIPT_PARAM_C(Set*, set);
|
||||
set->game->dependent_scripts_keywords.add(dep); // this depends on the set's keywords
|
||||
SCRIPT_RETURN(_(""));
|
||||
return ctx.getVariable(SCRIPT_VAR_input);
|
||||
}
|
||||
|
||||
SCRIPT_FUNCTION(keyword_usage) {
|
||||
|
||||
Reference in New Issue
Block a user