From f38d68a35ab18a618eada186d6dfbcc4fe8b35bf Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sun, 17 Mar 2024 18:14:18 +0100 Subject: [PATCH] Added distributions --- README.md | 4 ++- The-Only-Cure.code-workspace | 6 ----- media/lua/server/TOC/Distributions.lua | 34 ++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 media/lua/server/TOC/Distributions.lua diff --git a/README.md b/README.md index ec020ab..daad494 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# Dev Version + +# Dev Version + Temp readme, gonna be reworked for the next release. diff --git a/The-Only-Cure.code-workspace b/The-Only-Cure.code-workspace index a086303..876a149 100644 --- a/The-Only-Cure.code-workspace +++ b/The-Only-Cure.code-workspace @@ -2,12 +2,6 @@ "folders": [ { "path": "." - }, - { - "path": "../PerformanceTestFramework" - }, - { - "path": "../TestFramework" } ], "settings": {} diff --git a/media/lua/server/TOC/Distributions.lua b/media/lua/server/TOC/Distributions.lua new file mode 100644 index 0000000..769d87c --- /dev/null +++ b/media/lua/server/TOC/Distributions.lua @@ -0,0 +1,34 @@ +require('Items/Distributions') +require('Items/SuburbsDistributions') + + +--SuburbsDistributions = SuburbsDistributions or {} + +-- Insert Prosts and various items in the Medical Clinic loot table + +local prosthesisLoot = { + [1] = { + name = "TOC.Prost_HookArm_L", + chance = 10 + }, + + [2] = { + name = "TOC.Prost_NormalArm_L", + chance = 10 + }, + + [3] = { + name = "TOC.Surg_Arm_Tourniquet_L", + chance = 25 + } +} + + +for i=1, #prosthesisLoot do + local tab = prosthesisLoot[i] + table.insert(ProceduralDistributions.list.MedicalClinicTools.items, tab.name) + table.insert(ProceduralDistributions.list.MedicalClinicTools.items, tab.chance) +end + + +