Compare commits

...
Author SHA1 Message Date
admin 811bfd970a Use direct fire roll vector declarations 2026-06-23 12:59:52 -07:00
2 changed files with 6 additions and 6 deletions
@@ -64,7 +64,7 @@ TEST_F(ExtinguishFireCommandTests, Execute_givesAgilityXp) {
actor->mutable_attached_hero().mutate_agility_xp(11);
actor->mutable_attached_hero().mutate_wisdom_xp(33);
auto rolls = std::vector<double>{0.50};
std::vector<double> rolls{0.50};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
const auto results = ExtinguishFireCommand(
@@ -83,7 +83,7 @@ TEST_F(ExtinguishFireCommandTests, Execute_givesAgilityXp) {
}
TEST_F(ExtinguishFireCommandTests, ExecuteLowRoll_extinguishesFire) {
auto rolls = std::vector<double>{0.25};
std::vector<double> rolls{0.25};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
GetMutableTerrain(hexMap, Coords(3, 3))->mutable_modifier().mutable_fire().mutate_present(true);
@@ -107,7 +107,7 @@ TEST_F(ExtinguishFireCommandTests, ExecuteLowRoll_extinguishesFire) {
}
TEST_F(ExtinguishFireCommandTests, ExecuteHighRoll_doesNotExtinguish) {
auto rolls = std::vector<double>{0.75};
std::vector<double> rolls{0.75};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
GetMutableTerrain(hexMap, Coords(3, 3))->mutable_modifier().mutable_fire().mutate_present(true);
@@ -129,7 +129,7 @@ TEST_F(ExtinguishFireCommandTests, ExecuteHighRoll_doesNotExtinguish) {
TEST_F(ExtinguishFireCommandTests, ExecuteHiddenActor_unhides) {
actor->mutate_hidden(true);
auto rolls = std::vector<double>{0.75};
std::vector<double> rolls{0.75};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
GetMutableTerrain(hexMap, Coords(3, 3))->mutable_modifier().mutable_fire().mutate_present(true);
@@ -58,7 +58,7 @@ public:
};
TEST_F(StartFireCommandTests, ExecuteLowRoll_startsFire) {
auto rolls = std::vector<double>{0.25};
std::vector<double> rolls{0.25};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
const auto results = StartFireCommand(
@@ -81,7 +81,7 @@ TEST_F(StartFireCommandTests, ExecuteLowRoll_startsFire) {
}
TEST_F(StartFireCommandTests, ExecuteHighRoll_doesNotStartFire) {
auto rolls = std::vector<double>{0.75};
std::vector<double> rolls{0.75};
const auto generator = std::make_shared<SequenceRandomGenerator>(rolls);
const auto results = StartFireCommand(