Merge pull request #83 from rubenpirreram/ID_IMAGE_ADDING

Fix: event construct with imgID
This commit is contained in:
rubenpirreram
2026-05-06 16:46:17 +02:00
committed by GitHub
5 changed files with 12 additions and 4 deletions
@@ -37,7 +37,7 @@ public class Hunt extends EventCard {
* @param prestigeMultiplier prestige points multiplicator used during the event
*/
public Hunt(String idIMG,int Era, int prestigeMultiplier) {
super(Era, EventType.HUNT);
super(idIMG,Era, EventType.HUNT);
this.foodMultiplier = 1;
this.prestigeMultiplier = prestigeMultiplier;
}
@@ -42,7 +42,7 @@ public class ShamanicRitual extends EventCard {
* @param prestigeToRemove prestige points removed from the player with the fewest icons
*/
public ShamanicRitual(String idIMG,int Era, int prestigeToAdd, int prestigeToRemove) {
super(Era, EventType.SHAMANIC_RITUAL);
super(idIMG,Era, EventType.SHAMANIC_RITUAL);
this.prestigeToAdd = prestigeToAdd;
this.prestigeToRemove = prestigeToRemove;
@@ -176,8 +176,8 @@ public class Board implements Serializable {
tribeDeck_temp.addAll(era1);
tribeDeck_temp.addAll(era2);
tribeDeck_temp.addAll(era3);
tribeDeck_temp.add(new Sustenance(3,3));
tribeDeck_temp.add(new ShamanicRitual(3,15,7));
tribeDeck_temp.add(new Sustenance("95",3,3));
tribeDeck_temp.add(new ShamanicRitual("96",3,15,7));
return tribeDeck_temp;
}