Skip to content

Battle ~ Test ~ Moves ~ Items ~ Equipment ~ Design Document

nicholaswlee edited this page May 22, 2022 · 8 revisions

Battle Testing Moves, Items, and Equipment Design Document

There have been a lot file changes and ways that battles have changed. We need to implement a couple more tests to allow for all of our code base to be tested.

test_battle_ai.c

critical_chance

We want to make sure critical damage occurs at the proper chances.

mag_damage

We would like to ensure magical damage is calculated correctly

phys_damage

We would like to ensure physical damage is calculated correctly

crit_damage

We would like to ensure critical damage is calculated correctly.

test_battle_default_objects.c

default_equip_weapon

We would like to test to make sure a weapons stats are applied correctly

default_equip_accessory

We would like to test to make sure a accessory stats are applied correctly

default_equip_armor

We would like to test to make sure a armor stats are applied correctly

default_equip_equipement_sets

We would like to test to make sure that different equipment sets are applied correctly

default_equip_offensive_item

We would like to test offensive items to make sure they debut correctly.

test_battle_flow.c

set_battle_player

Needs to be changed to test for battle equipment.

set_enemy

Needs to be changed to test for battle equipment.

set_battle

Needs to be changed to test for battle equipment for both player and NPC

do_damage_physical_battle_flow_move

Need to test a physical damaging move is executed properly.

do_damage_magical_battle_flow_move

Need to test a magical damaging move is executed properly.

do_stat_change_single_battle_flow_move

Need to test a single stat_changing move is executed properly.

do_stat_change_both_battle_flow_move

Need to test a both stat_changing move is executed properly.

do_damage_stat_change_battle_flow_move

Need to test a damaging and stat_changing move is executed properly.

do_stat_change_single_enemy_make_move

Need to test a single stat_changing move is executed properly.

do_stat_change_both_enemy_make_move

Need to test a both stat_changing move is executed properly.

do_damage_stat_change_enemy_make_move

Need to test a damaging and stat_changing move is executed properly.

calculate_accuracy

Need to test accuracy and how it is calculated.

test_battle_flow_structs.c

None

test_battle_logic.c

consume_battle_item

Need to ensure that new stat changes calculated correctly.

use_battle_item

Need to ensure that new stat changes calculated correctly.

apply_stat_changes

Need to ensure that new stat changes calculated correctly.

stat_changes_add_item_node

Need to ensure that new stat changes calculated correctly.

test_battle_move_maker.c

None

test_battle_moves.c

All tests need to be updated to accommodate new fields

test_battle_print.c

print_battle_damage

Needs to test the printing of the damage.

print_stat_changes

Needs to test the printing of stat changes.

print_stat_changes_move_user

Needs to test the printing of stat changes of applied to a user.

print_stat_changes_move_target

Needs to test the printing of stat changes of applied to a target.

print_stat_changes_move_both

Needs to test the printing of stat changes of applied to both combatants.

print_battle_item

Needs to test print the use of items

print_battle_item_details

The is a new function and how it prints needs to be tested.

test_battle_state.c

combatant_new

This test needs to test for equipment

combatant_init

This test needs to test for equipment

stat_changes_init

Needs to be updated for new fields

stat_changes_undo

Needs to be updated for new fields

Clone this wiki locally