Files
herolib/lib/core/playcmds/currency.v
2024-12-30 08:01:17 +01:00

22 lines
531 B
Verilog

module playcmds
// fn currency_actions(actions_ []playbook.Action) ! {
// mut actions2 := actions.filtersort(actions: actions_, actor: 'currency', book: '*')!
// if actions2.len == 0 {
// return
// }
// mut cs := currency.new()!
// for action in actions2 {
// // TODO: set the currencies
// if action.name == 'default_set' {
// cur := action.params.get('cur')!
// usdval := action.params.get_int('usdval')!
// cs.default_set(cur, usdval)!
// }
// }
// // TODO: add the currency metainfo, do a test
// }