Add Overdosing Behaviour to Meth (#4949)

* Added debug bottle of meth as well as a damage increase on a Reagent Threshold

* fix for metabolism getting funked when there is a failed reaction condition

* removed max, raised minimum to 10

* reduced regular meth damage, increased overdose damage
This commit is contained in:
Fortune117
2021-10-21 07:30:55 +11:00
committed by GitHub
parent f58828d317
commit 55249e3688
4 changed files with 30 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ namespace Content.Server.Body.Metabolism
}
if (!conditionsMet)
return;
continue;
// If we're part of a body, pass that entity to Metabolize
// Otherwise, just pass our owner entity, maybe we're a plant or something

View File

@@ -3,12 +3,14 @@ using Content.Shared.Chemistry.Reagent;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Content.Shared.Damage;
using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects
{
/// <summary>
/// Default metabolism for medicine reagents.
/// </summary>
[UsedImplicitly]
public class HealthChange : ReagentEffect
{
/// <summary>

View File

@@ -188,10 +188,17 @@
- !type:HealthChange
damage:
types:
Poison: 3 # 2.5
Poison: 2 # 2.5
- !type:MovespeedModifier
walkSpeedModifier: 1.3
sprintSpeedModifier: 1.3
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 10
damage:
types:
Poison: 4 # this is added to the base damage of the meth.
Omnizine:
effects:
- !type:HealthChange

View File

@@ -0,0 +1,19 @@
- type: entity
parent: DrinkGlassBase
id: DrinkMeth
name: meth # beer it is. coffee. beer? coff-ee? be-er? c-o... b-e
description: Just a whole glass of meth.
suffix: DEBUG
components:
- type: Tag
tags:
- Debug
- type: SolutionContainerManager
solutions:
drink:
maxVol: 20
reagents:
- ReagentId: Meth
Quantity: 20
- type: Sprite
sprite: Objects/Consumable/Drinks/beer.rsi