Added early exit to adjustLooseLootSpawnProbabilities()
This commit is contained in:
parent
f362f4eddc
commit
d518549711
@ -400,8 +400,11 @@ export class GameController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected adjustLooseLootSpawnProbabilities(): void {
|
protected adjustLooseLootSpawnProbabilities(): void {
|
||||||
const adjustments = this.lootConfig.looseLootSpawnPointAdjustments;
|
if (!this.lootConfig.looseLootSpawnPointAdjustments) {
|
||||||
for (const [mapId, mapAdjustments] of Object.entries(adjustments)) {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const [mapId, mapAdjustments] of Object.entries(this.lootConfig.looseLootSpawnPointAdjustments)) {
|
||||||
const mapLooseLootData = this.databaseService.getLocation(mapId).looseLoot;
|
const mapLooseLootData = this.databaseService.getLocation(mapId).looseLoot;
|
||||||
if (!mapLooseLootData) {
|
if (!mapLooseLootData) {
|
||||||
this.logger.warning(this.localisationService.getText("location-map_has_no_loose_loot_data", mapId));
|
this.logger.warning(this.localisationService.getText("location-map_has_no_loose_loot_data", mapId));
|
||||||
|
Loading…
Reference in New Issue
Block a user