Updated bot gen to include drink/food in generation weights

This commit is contained in:
Dev 2024-04-08 11:50:46 +01:00
parent f873659daf
commit 825d39430a
3 changed files with 440 additions and 153 deletions

View File

@ -187,6 +187,8 @@ public class GenerationChances
GenerationWeightData healingItems, GenerationWeightData healingItems,
GenerationWeightData drugItems, GenerationWeightData drugItems,
GenerationWeightData stimItems, GenerationWeightData stimItems,
GenerationWeightData foodItems,
GenerationWeightData drinkItems,
GenerationWeightData backpackLootItems, GenerationWeightData backpackLootItems,
GenerationWeightData pocketLootItems, GenerationWeightData pocketLootItems,
GenerationWeightData vestLootItems, GenerationWeightData vestLootItems,
@ -199,6 +201,8 @@ public class GenerationChances
healing = healingItems, healing = healingItems,
drugs = drugItems, drugs = drugItems,
stims = stimItems, stims = stimItems,
food = foodItems,
drink = drinkItems,
backpackLoot = backpackLootItems, backpackLoot = backpackLootItems,
pocketLoot = pocketLootItems, pocketLoot = pocketLootItems,
vestLoot = vestLootItems, vestLoot = vestLootItems,
@ -234,6 +238,8 @@ public class ItemChances
public GenerationWeightData healing { get; set; } public GenerationWeightData healing { get; set; }
public GenerationWeightData drugs { get; set; } public GenerationWeightData drugs { get; set; }
public GenerationWeightData stims { get; set; } public GenerationWeightData stims { get; set; }
public GenerationWeightData food { get; set; }
public GenerationWeightData drink { get; set; }
public GenerationWeightData backpackLoot { get; set; } public GenerationWeightData backpackLoot { get; set; }
public GenerationWeightData pocketLoot { get; set; } public GenerationWeightData pocketLoot { get; set; }
public GenerationWeightData vestLoot { get; set; } public GenerationWeightData vestLoot { get; set; }

View File

@ -3,8 +3,8 @@
"backpackLoot": { "backpackLoot": {
"weights": { "weights": {
"0": 1, "0": 1,
"1": 2, "1": 6,
"2": 2, "2": 6,
"3": 1, "3": 1,
"4": 1, "4": 1,
"5": 1, "5": 1,
@ -14,16 +14,32 @@
}, },
"drugs": { "drugs": {
"weights": { "weights": {
"0": 1, "0": 30,
"1": 2, "1": 9,
"2": 0 "2": 1
},
"whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
}, },
"whitelist": [] "whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
"0": 3, "0": 8,
"1": 4, "1": 6,
"2": 2, "2": 2,
"3": 1, "3": 1,
"4": 0, "4": 0,
@ -33,8 +49,8 @@
}, },
"healing": { "healing": {
"weights": { "weights": {
"0": 1, "0": 5,
"1": 2, "1": 6,
"2": 1 "2": 1
}, },
"whitelist": [] "whitelist": []
@ -42,17 +58,17 @@
"magazines": { "magazines": {
"weights": { "weights": {
"0": 0, "0": 0,
"1": 0, "1": 5,
"2": 1, "2": 4,
"3": 3, "3": 2,
"4": 1 "4": 1
}, },
"whitelist": [] "whitelist": []
}, },
"pocketLoot": { "pocketLoot": {
"weights": { "weights": {
"0": 1, "0": 2,
"1": 6, "1": 9,
"2": 3, "2": 3,
"3": 1, "3": 1,
"4": 1 "4": 1
@ -68,7 +84,7 @@
}, },
"stims": { "stims": {
"weights": { "weights": {
"0": 15, "0": 45,
"1": 3, "1": 3,
"2": 1 "2": 1
}, },
@ -77,8 +93,8 @@
"vestLoot": { "vestLoot": {
"weights": { "weights": {
"0": 1, "0": 1,
"1": 1, "1": 3,
"2": 2, "2": 4,
"3": 1, "3": 1,
"4": 0, "4": 0,
"5": 0, "5": 0,
@ -107,6 +123,22 @@
"1": 2 "1": 2
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -193,6 +225,22 @@
"1": 2 "1": 2
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -277,6 +325,22 @@
"1": 2 "1": 2
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -361,6 +425,22 @@
"2": 0 "2": 0
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -451,6 +531,22 @@
"2": 2 "2": 2
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -540,6 +636,22 @@
"2": 0 "2": 0
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -628,6 +740,22 @@
"1": 2 "1": 2
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -715,6 +843,22 @@
"4": 1 "4": 1
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -808,6 +952,22 @@
"2": 0 "2": 0
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -840,10 +1000,10 @@
}, },
"pocketLoot": { "pocketLoot": {
"weights": { "weights": {
"0": 3, "0": 10,
"1": 10, "1": 35,
"2": 3, "2": 3,
"3": 1, "3": 2,
"4": 1 "4": 1
}, },
"whitelist": [] "whitelist": []
@ -897,6 +1057,22 @@
"2": 0 "2": 0
}, },
"whitelist": [] "whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
}, },
"grenades": { "grenades": {
"weights": { "weights": {
@ -964,5 +1140,108 @@
}, },
"whitelist": [] "whitelist": []
} }
},
"gifter": {
"backpackLoot": {
"weights": {
"0": 0,
"1": 0,
"10": 1,
"2": 0,
"3": 0,
"4": 8,
"5": 5,
"6": 2,
"7": 1
},
"whitelist": []
},
"drugs": {
"weights": {
"0": 1,
"1": 2,
"2": 0
},
"whitelist": []
},
"food": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"drinks": {
"weights": {
"0": 10,
"1": 5,
"2": 2
},
"whitelist": []
},
"grenades": {
"weights": {
"0": 1,
"1": 2,
"2": 1
},
"whitelist": []
},
"healing": {
"weights": {
"0": 1,
"1": 2,
"2": 1
},
"whitelist": []
},
"magazines": {
"weights": {
"0": 0,
"1": 0,
"2": 1,
"3": 3,
"4": 0
},
"whitelist": []
},
"pocketLoot": {
"weights": {
"0": 1,
"1": 3,
"2": 6,
"3": 1,
"4": 1
},
"whitelist": []
},
"specialItems": {
"weights": {
"0": 1,
"1": 0
},
"whitelist": []
},
"stims": {
"weights": {
"0": 2,
"1": 1,
"2": 0
},
"whitelist": []
},
"vestLoot": {
"weights": {
"0": 1,
"1": 1,
"2": 2,
"3": 1,
"4": 0,
"5": 0,
"6": 0
},
"whitelist": []
}
} }
} }

View File

@ -235,6 +235,8 @@ namespace Generator.Helpers.Gear
weightsData["healing"], weightsData["healing"],
weightsData["drugs"], weightsData["drugs"],
weightsData["stims"], weightsData["stims"],
weightsData["food"],
weightsData["drinks"],
weightsData["backpackLoot"], weightsData["backpackLoot"],
weightsData["pocketLoot"], weightsData["pocketLoot"],
weightsData["vestLoot"], weightsData["vestLoot"],