Make separate bossKill min/max properties + adjust various difficulty values

This commit is contained in:
Dev 2023-10-11 17:05:06 +01:00
parent c2a6ca678e
commit 0986bd0932
3 changed files with 38 additions and 22 deletions

View File

@ -238,15 +238,17 @@
"data": ["LeftLeg", "RightLeg"]
}
],
"specificLocationProb": 0.25,
"specificLocationProb": 0.15,
"distLocationBlacklist": ["laboratory", "factory4_day", "factory4_night"],
"distProb": 0.25,
"distProb": 0.2,
"maxDist": 100,
"minDist": 20,
"maxKills": 3,
"minKills": 2,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxBossKills": 1,
"minBossKills": 1,
"weaponRequirementProb": 0.1,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 15,
@ -418,10 +420,12 @@
"distProb": 0.25,
"maxDist": 200,
"minDist": 20,
"maxKills": 5,
"minKills": 2,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxKills": 15,
"minKills": 5,
"maxBossKills": 2,
"minBossKills": 1,
"weaponRequirementProb": 0.2,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 10,
@ -671,15 +675,17 @@
"data": ["LeftLeg", "RightLeg"]
}
],
"specificLocationProb": 0.25,
"specificLocationProb": 0.15,
"distLocationBlacklist": ["laboratory", "factory4_day", "factory4_night"],
"distProb": 0.20,
"maxDist": 100,
"minDist": 20,
"maxKills": 10,
"minKills": 5,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxBossKills": 1,
"minBossKills": 1,
"weaponRequirementProb": 0.1,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 10,
@ -853,8 +859,10 @@
"minDist": 20,
"maxKills": 15,
"minKills": 5,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxBossKills": 3,
"minBossKills": 1,
"weaponRequirementProb": 0.2,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 10,
@ -1018,15 +1026,17 @@
"data": ["LeftLeg", "RightLeg"]
}
],
"specificLocationProb": 0.25,
"specificLocationProb": 0.15,
"distLocationBlacklist": ["laboratory"],
"distProb": 0.20,
"maxDist": 100,
"minDist": 20,
"maxKills": 3,
"minKills": 1,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxBossKills": 1,
"minBossKills": 1,
"weaponRequirementProb": 0.1,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 10,
@ -1131,12 +1141,14 @@
"specificLocationProb": 0.25,
"distLocationBlacklist": ["laboratory"],
"distProb": 0.25,
"maxDist": 200,
"maxDist": 150,
"minDist": 20,
"maxKills": 5,
"minKills": 2,
"weaponRequirementProb": 0.9,
"weaponCategoryRequirementProb": 0.2,
"maxKills": 15,
"minKills": 3,
"maxBossKills": 3,
"minBossKills": 1,
"weaponRequirementProb": 0.2,
"weaponCategoryRequirementProb": 0.3,
"weaponCategoryRequirements": [{
"key": "Shotgun",
"relativeProbability": 10,

View File

@ -753,7 +753,9 @@ export class RepeatableQuestController
}
// Draw how many npm kills are required
const kills = this.randomUtil.randInt(eliminationConfig.minKills, eliminationConfig.maxKills + 1);
const kills = (targetsConfig.data(targetKey).isBoss)
? this.randomUtil.randInt(eliminationConfig.minBossKills, eliminationConfig.maxBossKills + 1)
: this.randomUtil.randInt(eliminationConfig.minKills, eliminationConfig.maxKills + 1);
const killDifficulty = kills;
// not perfectly happy here; we give difficulty = 1 to the quest reward generation when we have the most diffucult mission

View File

@ -117,6 +117,8 @@ export interface IEliminationConfig
minDist: number
maxKills: number
minKills: number
minBossKills: number
maxBossKills: number
weaponCategoryRequirementProb: number
weaponCategoryRequirements: IWeaponRequirement[]
weaponRequirementProb: number