Rituals now work mostly how I want, and even prototyped the idea of a cursed item giving you a debuff and also boosting damage more.
This commit is contained in:
parent
eeea3c794f
commit
15bb69624b
2 changed files with 118 additions and 28 deletions
|
@ -50,7 +50,7 @@ TEST_CASE("prototype combat system ideas", "[combat]") {
|
|||
|
||||
ritual.set_state("has_spikes", true);
|
||||
ritual.update();
|
||||
fmt::println("------------ TEST WILL DO PIERCE");
|
||||
fmt::println("\n\n------------ TEST WILL DO PIERCE");
|
||||
ritual.dump();
|
||||
REQUIRE(ritual.will_do("pierce_type"));
|
||||
|
||||
|
@ -58,10 +58,27 @@ TEST_CASE("prototype combat system ideas", "[combat]") {
|
|||
ritual.set_state("has_magick", true);
|
||||
ritual.set_state("has_spikes", true);
|
||||
ritual.update();
|
||||
fmt::println("------------ TEST WILL DO MAGICK TOO");
|
||||
fmt::println("\n\n------------ TEST WILL DO MAGICK TOO");
|
||||
ritual.dump();
|
||||
REQUIRE(ritual.will_do("magick_type"));
|
||||
|
||||
ritual.plan.script.pop_front();
|
||||
REQUIRE(ritual.will_do("pierce_type"));
|
||||
|
||||
ritual.reset();
|
||||
ritual.set_state("has_magick", true);
|
||||
ritual.set_state("has_spikes", true);
|
||||
ritual.set_state("shiny_bauble", true);
|
||||
ritual.update();
|
||||
fmt::println("\n\n------------ TEST WILL DO DAMAGE BOOST");
|
||||
ritual.dump();
|
||||
|
||||
ritual.reset();
|
||||
ritual.set_state("has_magick", true);
|
||||
ritual.set_state("cursed_item", true);
|
||||
ritual.set_state("shiny_bauble", true);
|
||||
ritual.update();
|
||||
fmt::println("\n\n------------ TEST WILL DO LARGE DAMAGE BOOST");
|
||||
ritual.dump();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue