mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add dependency checks for card.linked_card_x
This commit is contained in:
@@ -113,7 +113,7 @@ ScriptValueP Context::dependencies(const Dependency& dep, const Script& script)
|
||||
// - member operator; and it signals a dependency.
|
||||
// - looper construction
|
||||
// - + for function composition
|
||||
// Variable assignments are performed as normall.
|
||||
// Variable assignments are performed as normal.
|
||||
// Jumps are tricky:
|
||||
// - I_LOOP: We want to prevent infinite loops, the solution is that after the first
|
||||
// iteration we set the looper to a dummy value, so the loop is only executed once.
|
||||
|
||||
@@ -202,11 +202,21 @@ void SetScriptManager::onAction(const Action& action, bool undone) {
|
||||
TYPE_CASE_(action, KeywordListAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_keywords);
|
||||
return;
|
||||
}
|
||||
TYPE_CASE(action, OneWayLinkCardsAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_links, action.card);
|
||||
return;
|
||||
}
|
||||
TYPE_CASE_(action, ChangeKeywordModeAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_keywords);
|
||||
return;
|
||||
}
|
||||
TYPE_CASE(action, ChangeCardNotesAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_notes, action.card);
|
||||
}
|
||||
TYPE_CASE(action, ChangeCardUIDAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_uid, action.card);
|
||||
}
|
||||
TYPE_CASE(action, ChangeCardStyleAction) {
|
||||
updateAllDependend(set.game->dependent_scripts_stylesheet, action.card);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user