Main/resources/[jobs]/[medic]/visn_are/script/entities/medications.lua
2025-06-07 08:51:21 +02:00

385 lines
No EOL
11 KiB
Lua

--[[
-- Author: Tim Plate
-- Project: Advanced Roleplay Environment
-- Copyright (c) 2022 Tim Plate Solutions
--]]
MEDICATIONS = {
-- Available options: --
-- painReduce: number: How much does the pain get reduced?
-- hrIncreaseLow: table: How much will the heart rate be increased when the HR is low (below 55)? {minIncrease, maxIncrease}
-- hrIncreaseNormal: 55 <= _heartRate <= 110
-- hrIncreaseHigh: 110 > _heartRate
-- timeInSystem: number: How long until this medication has disappeared
-- timeTillMaxEffect: number: How long until the maximum effect is reached
-- maxDose: number: How many of this type of medication can be in the system before the patient overdoses?
-- onOverDose: number: Function to execute upon overdose. -1 for no overdose.
-- causesAnesthesia: bool: If this medication causes anesthesia
-- viscosityChange: number: The viscosity of a fluid is a measure of its resistance to gradual deformation by shear stress or tensile stress. For liquids, it corresponds to the informal concept of "thickness". This value will increase/decrease the viscoty of the blood with the percentage given. Where 100 = max. Using the minus will decrease viscosity.
["morphine"] = {
painReduce = 0.8,
hrIncreaseLow = { -20, -10 },
hrIncreaseNormal = { -30, -10 },
hrIncreaseHigh = { -35, -10 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = -10
},
["epinephrine"] = {
painReduce = 0.0,
hrIncreaseLow = { 10, 20 },
hrIncreaseNormal = { 10, 50 },
hrIncreaseHigh = { 10, 40 },
timeInSystem = 120,
timeTillMaxEffect = 10,
maxDose = 10,
viscosityChange = 0
},
["fentanyl"] = {
painReduce = 8.0,
hrIncreaseLow = { 5, 10 },
hrIncreaseNormal = { 5, 10 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Ibuprophen"] = {
painReduce = 3.0,
hrIncreaseLow = { 5, 10 },
hrIncreaseNormal = { 5, 10 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Novalmin"] = {
painReduce = 3.0,
hrIncreaseLow = { 5, 10 },
hrIncreaseNormal = { 5, 10 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Paracetamol"] = {
painReduce = 2.0,
hrIncreaseLow = { 5, 10 },
hrIncreaseNormal = { 5, 10 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["akrinor"] = {
painReduce = 0.0,
hrIncreaseLow = { 15, 30 },
hrIncreaseNormal = { 10, 20 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 340,
timeTillMaxEffect = 10,
maxDose = 10,
viscosityChange = 0
},
["glucoseg40"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 180,
timeTillMaxEffect = 20,
maxDose = 8,
viscosityChange = 0
},
["amiodaron"] = {
painReduce = 0.8,
hrIncreaseLow = { -5, -2 },
hrIncreaseNormal = { -12, -10 },
hrIncreaseHigh = { -20, -17 },
timeInSystem = 100,
timeTillMaxEffect = 50,
maxDose = 6,
viscosityChange = -10
},
["aspirin"] = {
painReduce = 1.0,
hrIncreaseLow = { -2, -1 },
hrIncreaseNormal = { -3, -2 },
hrIncreaseHigh = { -4, -3 },
timeInSystem = 100,
timeTillMaxEffect = 30,
maxDose = 3,
viscosityChange = -40
},
["esketamin"] = {
painReduce = 4.2,
hrIncreaseLow = { -15, -10 },
hrIncreaseNormal = { -20, -15 },
hrIncreaseHigh = { -25, -20 },
timeInSystem = 1000,
timeTillMaxEffect = 4,
maxDose = 4,
viscosityChange = -10
},
["heparin"] = {
painReduce = 0.0,
hrIncreaseLow = { 15, 20 },
hrIncreaseNormal = { 10, 15 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 180,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = -20
},
["penicillin"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 100,
timeTillMaxEffect = 30,
maxDose = 3,
viscosityChange = 0
},
["amoxicillin"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 100,
timeTillMaxEffect = 40,
maxDose = 3,
viscosityChange = 0
},
["placebo"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 10,
timeTillMaxEffect = 5,
maxDose = 10,
viscosityChange = 0
},
["salbutamol"] = {
painReduce = 0.2,
hrIncreaseLow = { 15, 20 },
hrIncreaseNormal = { 10, 15 },
hrIncreaseHigh = { 5, 10 },
timeInSystem = 180,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = -10
},
["tavor1"] = {
painReduce = 1.1,
hrIncreaseLow = { -5, -1 },
hrIncreaseNormal = { -10, -2 },
hrIncreaseHigh = { -15, -3 },
timeInSystem = 180,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["tavor25"] = {
painReduce = 1.3,
hrIncreaseLow = { -10, -2 },
hrIncreaseNormal = { -20, -4 },
hrIncreaseHigh = { -25, -6 },
timeInSystem = 480,
timeTillMaxEffect = 20,
maxDose = 2,
viscosityChange = 0
},
["tilidin"] = {
painReduce = 4.3,
hrIncreaseLow = { -5, -2 },
hrIncreaseNormal = { -10, -5 },
hrIncreaseHigh = { -15, -10 },
timeInSystem = 1800,
timeTillMaxEffect = 20,
maxDose = 2,
viscosityChange = -10
},
["tranexamsaure"] = {
painReduce = 0.0,
hrIncreaseLow = { 1, 5 },
hrIncreaseNormal = { 2, 10 },
hrIncreaseHigh = { 5, 15 },
timeInSystem = 1800,
timeTillMaxEffect = 20,
maxDose = 3,
viscosityChange = 50
},
["urapidil1"] = {
painReduce = 0.0,
hrIncreaseLow = { -10, -5 },
hrIncreaseNormal = { -15, -10 },
hrIncreaseHigh = { -20, -15 },
timeInSystem = 180,
timeTillMaxEffect = 50,
maxDose = 6,
viscosityChange = -10
},
["urapidil2"] = {
painReduce = 0.0,
hrIncreaseLow = { -15, -10 },
hrIncreaseNormal = { -20, -15 },
hrIncreaseHigh = { -30, -20 },
timeInSystem = 380,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = -10
},
["urapidil3"] = {
painReduce = 0.8,
hrIncreaseLow = { -20, -10 },
hrIncreaseNormal = { -30, -20 },
hrIncreaseHigh = { -35, -25 },
timeInSystem = 580,
timeTillMaxEffect = 10,
maxDose = 3,
viscosityChange = -10
},
["vomex"] = {
painReduce = 0.0,
hrIncreaseLow = { -2, -1 },
hrIncreaseNormal = { -4, -1 },
hrIncreaseHigh = { -6, -1 },
timeInSystem = 60,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = -10
},
["5-fach Impfung Hund"] = {
painReduce = 0.0,
hrIncreaseLow = { 2, 4 },
hrIncreaseNormal = { 2, 4 },
hrIncreaseHigh = { 2, 4 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 6,
viscosityChange = 0
},
["3-fach Impfung Katze"] = {
painReduce = 0.0,
hrIncreaseLow = { 2, 4 },
hrIncreaseNormal = { 2, 4 },
hrIncreaseHigh = { 2, 4 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Wurmkur"] = {
painReduce = 0.0,
hrIncreaseLow = { 2, 4 },
hrIncreaseNormal = { 2, 4 },
hrIncreaseHigh = { 2, 4 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Zeckenschutzmittel"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Flohmittel"] = {
painReduce = 0.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 4,
viscosityChange = 0
},
["Metacam"] = {
painReduce = 8.0,
hrIncreaseLow = { 3, 6 },
hrIncreaseNormal = { 3, 6 },
hrIncreaseHigh = { 3, 6 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 5,
viscosityChange = 0
},
["Cefalexin"] = {
painReduce = 0.0,
hrIncreaseLow = { 2, 4 },
hrIncreaseNormal = { 2, 4 },
hrIncreaseHigh = { 2, 4 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 10,
viscosityChange = 0
},
["Lidocain"] = {
painReduce = 5.0,
hrIncreaseLow = { 0, 0 },
hrIncreaseNormal = { 0, 0 },
hrIncreaseHigh = { 0, 0 },
timeInSystem = 1800,
timeTillMaxEffect = 30,
maxDose = 7,
viscosityChange = 0
}
}