all: try to implement basic color tint for a monster picture (to be improved)
This commit is contained in:
@@ -88,7 +88,7 @@ TEST_CASE("Initialization sanity test for monster") {
|
||||
CHECK(monst.default_attitude == eAttitude::DOCILE);
|
||||
CHECK(monst.summon_type == 0);
|
||||
CHECK(monst.default_facial_pic == 0);
|
||||
CHECK(monst.picture_num == 149);
|
||||
CHECK(monst.get_num_for_picture() == 149);
|
||||
CHECK(monst.ambient_sound == -1);
|
||||
CHECK(monst.see_spec == -1);
|
||||
}
|
||||
@@ -174,7 +174,7 @@ TEST_CASE("Construction sanity test for monster") {
|
||||
pop.assign(0, dude, monst, false, 1);
|
||||
REQUIRE(pop.size() == 1);
|
||||
CHECK(pop[0].active == 1);
|
||||
CHECK(pop[0].picture_num == 0);
|
||||
CHECK(pop[0].get_num_for_picture() == 0);
|
||||
CHECK(pop[0].m_health == 32);
|
||||
CHECK(pop[0].health == 32);
|
||||
CHECK(pop[0].max_mp == 60);
|
||||
|
@@ -46,7 +46,7 @@ TEST_CASE("Converting monsters from legacy scenarios") {
|
||||
CHECK(new_monst.y_width == 1);
|
||||
CHECK(new_monst.default_attitude == eAttitude::FRIENDLY);
|
||||
CHECK(new_monst.default_facial_pic == 51);
|
||||
CHECK(new_monst.picture_num == 21);
|
||||
CHECK(new_monst.get_num_for_picture() == 21);
|
||||
CHECK(new_monst.summon_type == 1);
|
||||
CHECK(new_monst.ambient_sound == snd_num_t(-1));
|
||||
CHECK(new_monst.see_spec == -1);
|
||||
|
@@ -131,7 +131,7 @@ TEST_CASE("Loading a monster type definition") {
|
||||
CHECK(scen.scen_monsters[1].m_health == 10);
|
||||
CHECK(scen.scen_monsters[1].speed == 4);
|
||||
CHECK(scen.scen_monsters[1].m_type == eRace::HUMANOID);
|
||||
CHECK(scen.scen_monsters[1].picture_num == 5);
|
||||
CHECK(scen.scen_monsters[1].get_num_for_picture() == 5);
|
||||
CHECK(scen.scen_monsters[1].x_width == 1);
|
||||
CHECK(scen.scen_monsters[1].y_width == 1);
|
||||
CHECK(scen.scen_monsters[1].default_attitude == eAttitude::HOSTILE_A);
|
||||
|
@@ -65,7 +65,7 @@ TEST_CASE("Saving monster types") {
|
||||
scen.scen_monsters[1].m_type = eRace::MAGICAL;
|
||||
scen.scen_monsters[1].x_width = 1;
|
||||
scen.scen_monsters[1].y_width = 2;
|
||||
scen.scen_monsters[1].picture_num = 17;
|
||||
scen.scen_monsters[1].picture= cMonster::get_picture_num(17);
|
||||
scen.scen_monsters[1].default_attitude = eAttitude::HOSTILE_B;
|
||||
SECTION("With the minimal required information") {
|
||||
in_and_out("basic", scen);
|
||||
@@ -78,7 +78,7 @@ TEST_CASE("Saving monster types") {
|
||||
CHECK(scen.scen_monsters[1].m_type == eRace::MAGICAL);
|
||||
CHECK(scen.scen_monsters[1].x_width == 1);
|
||||
CHECK(scen.scen_monsters[1].y_width == 2);
|
||||
CHECK(scen.scen_monsters[1].picture_num == 17);
|
||||
CHECK(scen.scen_monsters[1].get_num_for_picture() == 17);
|
||||
CHECK(scen.scen_monsters[1].default_attitude == eAttitude::HOSTILE_B);
|
||||
CHECK_FALSE(scen.scen_monsters[1].mindless);
|
||||
CHECK_FALSE(scen.scen_monsters[1].invuln);
|
||||
|
Reference in New Issue
Block a user