battle_rule
Record table of Soukoku no Arterial, records 0 to 99, 13 fields.
REINIT battle rules keyed by rule id (battle_rule_id): what wins and loses, the limits, and the deck's restrictions.
The game builds it at boot. Record id is [battle_rule.id] in a data file, battle_rule[id] in OMS and Lua, and a field battle_rule.id.field.
The database lists it: Battle rules.
Fields
Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod arterial-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
textbattle_rule_lines | string[100][6] | — | yes: a row of 6 columns by number, 0 to 5; write text.<number> = ... |
outcomesbattle_rule_outcomes | int[100][5] | — | yes: a row of 5 columns by name; write outcomes.<column> = ... |
hp_recoverybattle_rule_hp_recovery_flags | int[100] | — | yes: a whole number |
turn_limitbattle_rule_turn_limits | int[100] | — | yes: a whole number |
hand_sizebattle_rule_hand_sizes | int[100] | — | yes: a whole number |
deck_sizebattle_rule_deck_sizes | int[100] | — | yes: a whole number |
use_bansbattle_rule_use_bans | int[100] | — | yes: a whole number |
cost_rangebattle_rule_cost_ranges | int[100][2] | — | yes: a row of 2 columns by name; write cost_range.<column> = ... |
control_rangebattle_rule_control_ranges | int[100][2] | — | yes: a row of 2 columns by name; write control_range.<column> = ... |
attack_rangebattle_rule_attack_ranges | int[100][2] | — | yes: a row of 2 columns by name; write attack_range.<column> = ... |
hp_rangebattle_rule_hp_ranges | int[100][2] | — | yes: a row of 2 columns by name; write hp_range.<column> = ... |
race_masksbattle_rule_race_masks | int[100][2] | — | yes: a row of 2 columns by name; write race_masks.<column> = ... |
banned_card_rowsbattle_rule_banned_card_rows | int[100][10] | — | yes: a row of 10 columns by number, 0 to 9; write banned_card_rows.<number> = ... |