(
cls,
move,
move_ailment=None,
move_category=None,
min_hits=1,
max_hits=1,
min_turns=1,
max_turns=1,
drain=0,
healing=0,
crit_rate=0,
ailment_chance=0,
flinch_chance=0,
stat_chance=0,
)
| 1038 | |
| 1039 | @classmethod |
| 1040 | def setup_move_meta_data( |
| 1041 | cls, |
| 1042 | move, |
| 1043 | move_ailment=None, |
| 1044 | move_category=None, |
| 1045 | min_hits=1, |
| 1046 | max_hits=1, |
| 1047 | min_turns=1, |
| 1048 | max_turns=1, |
| 1049 | drain=0, |
| 1050 | healing=0, |
| 1051 | crit_rate=0, |
| 1052 | ailment_chance=0, |
| 1053 | flinch_chance=0, |
| 1054 | stat_chance=0, |
| 1055 | ): |
| 1056 | move_ailment = move_ailment or cls.setup_move_ailment_data() |
| 1057 | |
| 1058 | move_category = move_category or cls.setup_move_category_data() |
| 1059 | |
| 1060 | move_meta = MoveMeta( |
| 1061 | move=move, |
| 1062 | move_meta_category=move_category, |
| 1063 | move_meta_ailment=move_ailment, |
| 1064 | min_hits=min_hits, |
| 1065 | max_hits=max_hits, |
| 1066 | min_turns=min_turns, |
| 1067 | max_turns=max_turns, |
| 1068 | drain=drain, |
| 1069 | healing=healing, |
| 1070 | crit_rate=crit_rate, |
| 1071 | ailment_chance=ailment_chance, |
| 1072 | flinch_chance=flinch_chance, |
| 1073 | stat_chance=stat_chance, |
| 1074 | ) |
| 1075 | move_meta.save() |
| 1076 | |
| 1077 | return move_meta |
| 1078 | |
| 1079 | @classmethod |
| 1080 | def setup_move_change_data( |
no test coverage detected