MOM jumpstart typo, adventure event patch (#3357)

* Adventure - draft fixes

* Update AdventureEventData.java

cleanup

* Adventure map updates

Adding collision barriers around several maps, expanding entry objects to prevent moving outside the map

minor Temple of Gideon progress

* Adventure draft set filtering

Preventing sealed-only sets from being selected only for drafts

* Adventure mob spawn rate adjustment

Making enemy spawn allocation more reasonable while still allowing for higher and lower rates.

* Adventure - Map updates

Removing unneeded collision layers from dungeons

* Adventure - Fix for missing event rewards

getHumanPlayer() is backed by a transient field and will lose track of game wins if saved / reloaded

* Removal of unneeded collision layers

* Adventure - Event bugfix

Preventing NPE if event was created with an enemy participant that is no longer found in enemies.json

* MOM Red Jumpstart insert typo fix

---------

Co-authored-by: Anthony Calosa <anthonycalosa@gmail.com>
This commit is contained in:
TabletopGeneral
2023-06-28 21:59:15 -04:00
committed by GitHub
parent 5aed0da21d
commit d026e9324e
2 changed files with 6 additions and 1 deletions

View File

@@ -429,6 +429,11 @@ public class AdventureEventData implements Serializable {
public Image getAvatar() {
if (sprite == null) {
EnemyData data = WorldData.getEnemy(enemyDataName);
if (data == null){
//enemyDataName was not found, replace with something valid.
enemyDataName = Aggregates.random(WorldData.getAllEnemies()).getName();
}
sprite = new EnemySprite(WorldData.getEnemy(enemyDataName));
}
return sprite.getAvatar() == null ? new Image() : new Image(sprite.getAvatar());