contra-renderer/external/libfigure/after-figure.js

22 lines
936 B
JavaScript

// _ _____ _____ _____ ____ _____ ___ ____ _ _ ____ _____ _
// / \ | ___|_ _| ____| _ \ | ___|_ _/ ___| | | | _ \| ____| (_)___
// / _ \ | |_ | | | _| | |_) |____| |_ | | | _| | | | |_) | _| | / __|
// / ___ \| _| | | | |___| _ <_____| _| | | |_| | |_| | _ <| |___ _ | \__ \
// /_/ \_\_| |_| |_____|_| \_\ |_| |___\____|\___/|_| \_\_____(_)/ |___/
// |__/
import { moves, parameters, defineRelatedMove2Way } from "./define-figure.js"
import { param } from "./param.js"
// all moves with a balance are related to the move 'balance'
moves().forEach(function(move) {
parameters(move).forEach(function(the_param) {
if (
the_param.name === param("balance_true").name ||
the_param.name === param("balance_false").name
) {
defineRelatedMove2Way(move, "balance")
}
})
})