From 5a60d80448e755198a2b1a89d437306d2a49e279 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 14 Nov 2023 23:24:28 +0000 Subject: [PATCH] Add sanitar to generation weights json Choose last bot when choosing standing/skills/exp values --- Generator/Assets/generationWeights.json | 1825 ++++++++++++----------- Generator/BaseBotGenerator.cs | 6 +- 2 files changed, 960 insertions(+), 871 deletions(-) diff --git a/Generator/Assets/generationWeights.json b/Generator/Assets/generationWeights.json index 70ec951..ef381cc 100644 --- a/Generator/Assets/generationWeights.json +++ b/Generator/Assets/generationWeights.json @@ -1,879 +1,968 @@ { - "assault": { - "specialItems": { - "weights": { - "0": 1, - "1": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 2, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2, - "2": 0 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 15, - "1": 5, - "2": 1 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 2, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 0, - "5": 0, - "6": 0 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 1 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 1, - "3": 1, - "4": 0, - "5": 0 - }, - "whitelist": [] - } + "assault": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 2, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1 + }, + "whitelist": [] }, - "marksman": { - "specialItems": { - "weights": { - "0": 1, - "1": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 0, - "1": 2, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2, - "2": 0 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 3, - "1": 1, - "2": 0 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 3, - "1": 10, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 2, - "2": 2, - "3": 0, - "4": 0, - "5": 0, - "6": 0 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 1 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 1, - "3": 1, - "4": 1, - "5": 0 - }, - "whitelist": [] - } + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 0 + }, + "whitelist": [] }, - "default": { - "specialItems": { - "weights": { - "0": 1, - "1": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 2, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2, - "2": 0 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 2, - "1": 1, - "2": 0 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 0, - "5": 0, - "6": 0 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 1 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 1, - "3": 1, - "4": 0, - "5": 0 - }, - "whitelist": [] - } + "grenades": { + "weights": { + "0": 3, + "1": 4, + "2": 2, + "3": 1, + "4": 0, + "5": 0 + }, + "whitelist": [] }, - "followerboar": { - "specialItems": { - "weights": { - "0": 1, - "1": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 2, - "2": 3, - "3": 5, - "4": 2, - "5": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 9, - "2": 3, - "3": 2, - "4": 1 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 9, - "1": 5, - "2": 2, - "3": 1, - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 4, - "2": 13, - "3": 3, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 0, - "5": 0, - "6": 0 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 1 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 1, - "3": 1, - "4": 0, - "5": 0 - }, - "whitelist": [] - } + "healing": { + "weights": { + "0": 1, + "1": 2, + "2": 1 + }, + "whitelist": [] }, - "pmcbot": { - "specialItems": { - "weights": { - "0": 1, - "1": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 2, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2, - "2": 0 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 2, - "1": 1, - "2": 0 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 5, - "3": 1, - "4": 1, - "5": 1, - "6": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 2 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 1, - "2": 5, - "3": 2, - "4": 1, - "5": 1 - }, - "whitelist": [] - } + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 1 + }, + "whitelist": [] }, - "bosskojaniy": { - "specialItems": { - "weights": { - "0": 0, - "1": 0, - "2": 1 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 2, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2, - "2": 0 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 2, - "1": 1, - "2": 0 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 5, - "3": 1, - "4": 1, - "5": 1, - "6": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 2 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 1, - "2": 5, - "3": 2, - "4": 1, - "5": 1 - }, - "whitelist": [] - } + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "3": 1, + "4": 1 + }, + "whitelist": [] }, - "bossbully": { - "specialItems": { - "weights": { - "0": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "1": 1, - "2": 2 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 2, - "1": 1, - "2": 0 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 2, - "3": 1, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 6, - "2": 3, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 5, - "3": 1, - "4": 1, - "5": 1, - "6": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 3, - "4": 2 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 1, - "2": 5, - "3": 2, - "4": 1, - "5": 1 - }, - "whitelist": [] - } + "specialItems": { + "weights": { + "0": 1, + "1": 0 + }, + "whitelist": [] }, - "exusec": { - "specialItems": { - "weights": { - "0": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 1, - "1": 1, - "2": 2 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 5, - "1": 1 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 2, - "2": 5, - "3": 3, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 7, - "2": 4, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 5, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 1, - "3": 2, - "4": 3 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 1, - "2": 3, - "3": 2, - "4": 2, - "5": 1 - }, - "whitelist": [] - } + "stims": { + "weights": { + "0": 15, + "1": 3, + "2": 1 + }, + "whitelist": [] }, - "bosskilla": { - "specialItems": { - "weights": { - "0": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 2, - "1": 1, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 5, - "1": 1 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 2, - "2": 5, - "3": 3, - "4": 1, - "5": 1, - "6": 1, - "7": 0 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 7, - "2": 4, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 4, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 5, - "3": 6 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 3, - "3": 3, - "4": 1, - "5": 1 - }, - "whitelist": [] - } - }, - "bossgluhar": { - "specialItems": { - "weights": { - "0": 0 - }, - "whitelist": [] - }, - "healing": { - "weights": { - "0": 2, - "1": 1, - "2": 1 - }, - "whitelist": [] - }, - "drugs": { - "weights": { - "0": 1, - "1": 2 - }, - "whitelist": [] - }, - "stims": { - "weights": { - "0": 5, - "1": 1 - }, - "whitelist": [] - }, - "backpackLoot": { - "weights": { - "0": 1, - "1": 1, - "2": 4, - "3": 5, - "4": 2, - "5": 1, - "6": 1, - "7": 1 - }, - "whitelist": [] - }, - "pocketLoot": { - "weights": { - "0": 1, - "1": 7, - "2": 4, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "vestLoot": { - "weights": { - "0": 1, - "1": 3, - "2": 4, - "3": 1, - "4": 1 - }, - "whitelist": [] - }, - "magazines": { - "weights": { - "0": 0, - "1": 0, - "2": 5, - "3": 6, - "4": 4 - }, - "whitelist": [] - }, - "grenades": { - "weights": { - "0": 1, - "1": 2, - "2": 3, - "3": 3, - "4": 1, - "5": 1 - }, - "whitelist": [] - } + "vestLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 0, + "5": 0, + "6": 0 + }, + "whitelist": [] } + }, + "bossbully": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 1, + "2": 5, + "3": 2, + "4": 1, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "1": 1, + "2": 2 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 2 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 2, + "1": 1, + "2": 0 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 3, + "2": 5, + "3": 1, + "4": 1, + "5": 1, + "6": 1 + }, + "whitelist": [] + } + }, + "bossgluhar": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 4, + "3": 5, + "4": 2, + "5": 1, + "6": 1, + "7": 1 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 3, + "3": 3, + "4": 1, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 2, + "1": 1, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 5, + "3": 6, + "4": 4 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 7, + "2": 4, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 5, + "1": 1 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 3, + "2": 4, + "3": 1, + "4": 1 + }, + "whitelist": [] + } + }, + "bosskilla": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 2, + "2": 5, + "3": 3, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 3, + "3": 3, + "4": 1, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 2, + "1": 1, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 5, + "3": 6 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 7, + "2": 4, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 5, + "1": 1 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 3, + "2": 4, + "3": 1, + "4": 1 + }, + "whitelist": [] + } + }, + "bosskojaniy": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 0 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 1, + "2": 5, + "3": 2, + "4": 1, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 1, + "1": 2, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 2 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0, + "1": 0, + "2": 1 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 2, + "1": 1, + "2": 0 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 3, + "2": 5, + "3": 1, + "4": 1, + "5": 1, + "6": 1 + }, + "whitelist": [] + } + }, + "bosssanitar": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 2 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 1, + "3": 1, + "4": 0, + "5": 0 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 1, + "1": 2, + "2": 3 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 1 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0, + "1": 1 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 1, + "1": 1, + "2": 2 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 0, + "5": 0, + "6": 0 + }, + "whitelist": [] + } + }, + "default": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 0 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 1, + "3": 1, + "4": 0, + "5": 0 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 1, + "1": 2, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 1 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "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": [] + } + }, + "exusec": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 2, + "2": 5, + "3": 3, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 1, + "2": 3, + "3": 2, + "4": 2, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 1, + "1": 1, + "2": 2 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 2, + "4": 3 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 7, + "2": 4, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 5, + "1": 1 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 3, + "2": 5, + "3": 1, + "4": 1 + }, + "whitelist": [] + } + }, + "followerboar": { + "backpackLoot": { + "weights": { + "0": 6, + "1": 13, + "2": 4, + "3": 3, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 9, + "1": 3, + "2": 2, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 1, + "3": 1, + "4": 0, + "5": 0 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 9, + "1": 2, + "2": 3, + "3": 2, + "4": 2, + "5": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 2, + "3": 5, + "4": 1 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 6, + "1": 2, + "2": 2, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 1, + "1": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 9, + "1": 3, + "2": 2, + "3": 1 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 0, + "5": 0, + "6": 0 + }, + "whitelist": [] + } + }, + "marksman": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 0 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 2, + "2": 1, + "3": 1, + "4": 1, + "5": 0 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 0, + "1": 2, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 1 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 3, + "1": 10, + "2": 3, + "3": 1, + "4": 1 + }, + "whitelist": [] + }, + "specialItems": { + "weights": { + "0": 1, + "1": 0 + }, + "whitelist": [] + }, + "stims": { + "weights": { + "0": 3, + "1": 1, + "2": 0 + }, + "whitelist": [] + }, + "vestLoot": { + "weights": { + "0": 1, + "1": 2, + "2": 2, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + "whitelist": [] + } + }, + "pmcbot": { + "backpackLoot": { + "weights": { + "0": 1, + "1": 1, + "2": 2, + "3": 1, + "4": 1, + "5": 1, + "6": 1, + "7": 0 + }, + "whitelist": [] + }, + "drugs": { + "weights": { + "0": 1, + "1": 2, + "2": 0 + }, + "whitelist": [] + }, + "grenades": { + "weights": { + "0": 1, + "1": 1, + "2": 5, + "3": 2, + "4": 1, + "5": 1 + }, + "whitelist": [] + }, + "healing": { + "weights": { + "0": 1, + "1": 2, + "2": 1 + }, + "whitelist": [] + }, + "magazines": { + "weights": { + "0": 0, + "1": 0, + "2": 1, + "3": 3, + "4": 2 + }, + "whitelist": [] + }, + "pocketLoot": { + "weights": { + "0": 1, + "1": 6, + "2": 3, + "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": 3, + "2": 5, + "3": 1, + "4": 1, + "5": 1, + "6": 1 + }, + "whitelist": [] + } + } } diff --git a/Generator/BaseBotGenerator.cs b/Generator/BaseBotGenerator.cs index 539b634..9e44fb6 100644 --- a/Generator/BaseBotGenerator.cs +++ b/Generator/BaseBotGenerator.cs @@ -62,7 +62,7 @@ namespace Generator private static void AddSkills(Bot botToUpdate, IEnumerable rawBotsOfSameType) { - var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault(); + var firstBotOfDesiredType = rawBotsOfSameType.Last(); // Find the smallest and biggest value for each skill foreach (var skill in firstBotOfDesiredType.Skills.Common) @@ -91,7 +91,7 @@ namespace Generator private static void AddStandingForKill(Bot botToUpdate, IEnumerable rawBotsOfSameType) { - var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault(); + var firstBotOfDesiredType = rawBotsOfSameType.Last(); botToUpdate.experience.standingForKill = firstBotOfDesiredType.Info.Settings.StandingForKill; botToUpdate.experience.aggressorBonus = firstBotOfDesiredType.Info.Settings.AggressorBonus; @@ -99,7 +99,7 @@ namespace Generator private static void AddExperience(Bot botToUpdate, IEnumerable rawBotsOfSameType) { - var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault(); + var firstBotOfDesiredType = rawBotsOfSameType.Last(); botToUpdate.experience.reward.min = firstBotOfDesiredType.Info.Settings.Experience; botToUpdate.experience.reward.max = firstBotOfDesiredType.Info.Settings.Experience;