Small fix: ShamanicRitual

Hunt: changed the food logic
HuntTest: test adapted to the new version
This commit is contained in:
2026-04-08 19:07:40 +02:00
parent 092b8991cd
commit e94a9602ab
3 changed files with 16 additions and 16 deletions
@@ -21,7 +21,7 @@ class HuntTest {
void testConstructor() {
// Gli attributi di Hunt era e EventType vengono testati in EventCardTest.
// Gli attributi foodToAdd e prestigeMultiplier non possono essere testati singolarmente in quanto non hanno metodi getter
// Gli attributi foodMultiplier e prestigeMultiplier non possono essere testati singolarmente in quanto non hanno metodi getter
// Ne viene testato il corretto funzionamento indirettamente attraverso applyEffect.
// Come conseguenza finale, non può essere testato il costruttore di Hunt
@@ -42,7 +42,7 @@ class HuntTest {
h1.activateEvent(players);
assertEquals(6, p1.getPrestigeValue());
assertEquals(1, p1.getFoodValue());
assertEquals(2, p1.getFoodValue());
assertEquals(3, p2.getPrestigeValue());
assertEquals(1, p2.getFoodValue());
}
@@ -58,9 +58,9 @@ class HuntTest {
h1.activateEvent(players);
assertEquals(0, p1.getPrestigeValue());
assertEquals(1, p1.getFoodValue());
assertEquals(0, p1.getFoodValue());
assertEquals(0, p2.getPrestigeValue());
assertEquals(1, p2.getFoodValue());
assertEquals(0, p2.getFoodValue());
}
@Test
@@ -86,7 +86,7 @@ class HuntTest {
h1.activateEvent(players);
assertEquals(6, p1.getPrestigeValue());
assertEquals(1, p1.getFoodValue());
assertEquals(2, p1.getFoodValue());
assertEquals(4, p2.getPrestigeValue());
assertEquals(2, p2.getFoodValue());
assertEquals(3, p3.getPrestigeValue());
@@ -102,7 +102,7 @@ class HuntTest {
Hunt h1 = new Hunt(era, prestigeMultiplier);
Hunt h2 = (Hunt) h1.clone();
assertEquals(1, h2.foodToAdd);
assertEquals(1, h2.foodMultiplier);
assertEquals(3, h2.prestigeMultiplier);
assertEquals(1, h2.getEra());
assertEquals(EventType.HUNT, h2.getType());