Chem stuff and more (#584)

* - tweak: Ressurect meth and ephedrine.

* - add: Emag fun.

* - tweak: Fire bomb buff.

* - fix: Uplink loc.

* - tweak: Syringe.
This commit is contained in:
Aviu00
2024-08-08 09:07:40 +00:00
committed by GitHub
parent 9a9c9598e0
commit 3608960f5c
22 changed files with 111 additions and 41 deletions

View File

@@ -205,7 +205,7 @@ public sealed class InjectorSystem : SharedInjectorSystem
DoAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, user, actualDelay, new InjectorDoAfterEvent(), injector.Owner, target: target, used: injector.Owner) DoAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, user, actualDelay, new InjectorDoAfterEvent(), injector.Owner, target: target, used: injector.Owner)
{ {
BreakOnMove = true, BreakOnMove = isTarget, // WD EDIT
BreakOnWeightlessMove = false, BreakOnWeightlessMove = false,
BreakOnDamage = true, BreakOnDamage = true,
NeedHand = true, NeedHand = true,

View File

@@ -583,7 +583,7 @@ namespace Content.Server.VendingMachines
if (!Resolve(uid, ref vendComponent)) if (!Resolve(uid, ref vendComponent))
return; return;
RestockInventoryFromPrototype(uid, vendComponent); RestockInventoryFromPrototype(uid, vendComponent, false);
UpdateVendingMachineInterfaceState(uid, vendComponent); UpdateVendingMachineInterfaceState(uid, vendComponent);
TryUpdateVisualState(uid, vendComponent); TryUpdateVisualState(uid, vendComponent);

View File

@@ -29,7 +29,7 @@ public abstract partial class SharedVendingMachineSystem : EntitySystem
RestockInventoryFromPrototype(uid, component); RestockInventoryFromPrototype(uid, component);
} }
public void RestockInventoryFromPrototype(EntityUid uid, VendingMachineComponent? component = null) public void RestockInventoryFromPrototype(EntityUid uid, VendingMachineComponent? component = null, bool restockEverything = true) // WD EDIT
{ {
if (!Resolve(uid, ref component)) if (!Resolve(uid, ref component))
{ {
@@ -40,6 +40,8 @@ public abstract partial class SharedVendingMachineSystem : EntitySystem
return; return;
AddInventoryFromPrototype(uid, packPrototype.StartingInventory, InventoryType.Regular, component); AddInventoryFromPrototype(uid, packPrototype.StartingInventory, InventoryType.Regular, component);
if (!restockEverything) // WD
return;
AddInventoryFromPrototype(uid, packPrototype.EmaggedInventory, InventoryType.Emagged, component); AddInventoryFromPrototype(uid, packPrototype.EmaggedInventory, InventoryType.Emagged, component);
AddInventoryFromPrototype(uid, packPrototype.ContrabandInventory, InventoryType.Contraband, component); AddInventoryFromPrototype(uid, packPrototype.ContrabandInventory, InventoryType.Contraband, component);
} }

View File

@@ -47,7 +47,6 @@ public sealed class NarcoticEffect : EntitySystem
TryComp<StatusEffectsComponent>(uid, out var statusEffectsComp); TryComp<StatusEffectsComponent>(uid, out var statusEffectsComp);
RaiseLocalEvent(uid, new MoodEffectEvent("Stimulator"));
CancellationToken token = movespeedModifierComponent.CancelTokenSource.Token; CancellationToken token = movespeedModifierComponent.CancelTokenSource.Token;
int timer = component.TimerInterval[_robustRandom.Next(0, component.TimerInterval.Count)]; int timer = component.TimerInterval[_robustRandom.Next(0, component.TimerInterval.Count)];

View File

@@ -0,0 +1,20 @@
using Content.Shared._White.Mood;
using Content.Shared.Chemistry.Reagent;
using JetBrains.Annotations;
using Robust.Shared.Prototypes;
namespace Content.Shared._White.Chemistry;
[UsedImplicitly]
public sealed partial class NarcoticMoodEffect : ReagentEffect
{
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
{
return null;
}
public override void Effect(ReagentEffectArgs args)
{
args.EntityManager.EventBus.RaiseLocalEvent(args.SolutionEntity, new MoodEffectEvent("Stimulator"));
}
}

View File

@@ -1,4 +1,4 @@
ent-ChemicalCartridge = химический картридж ent-ChemicalCartridge = химический картридж
.desc = Используется для хранения огромного количества химикатов. Используется в химических раздатчиках .desc = Используется для хранения огромного количества химикатов. Используется в химических раздатчиках
ent-ChemicalCartridgeCarbon = химический картридж (углерод) ent-ChemicalCartridgeCarbon = химический картридж (углерод)
.desc = { ent-ChemicalCartridge.desc } .desc = { ent-ChemicalCartridge.desc }
@@ -46,3 +46,5 @@ ent-ChemicalCartridgeNitrogen = химический картридж (азот)
.desc = { ent-ChemicalCartridge.desc } .desc = { ent-ChemicalCartridge.desc }
ent-ChemicalCartridgeOxygen = химический картридж (кислород) ent-ChemicalCartridgeOxygen = химический картридж (кислород)
.desc = { ent-ChemicalCartridge.desc } .desc = { ent-ChemicalCartridge.desc }
ent-ChemicalCartridgeNapalm = химический картридж (напалм)
.desc = { ent-ChemicalCartridge.desc }

View File

@@ -2,13 +2,17 @@
ent-CultBola = магическая { ent-Bola } ent-CultBola = магическая { ent-Bola }
.desc = { ent-Bola.desc } .desc = { ent-Bola.desc }
.suffic = культ .suffix = культ
# Energy bola # Energy bola
ent-EnergyBola = энергобола ent-EnergyBola = энергобола
.desc = Соверешенное слияние технологии и справедливости для отлова преступников. .desc = Соверешенное слияние технологии и справедливости для отлова преступников.
ent-DrinkShakerEphedrineInfinite = { ent-DrinkShaker }
.desc = { ent-DrinkShaker.desc }
.suffix = Эфедрин, Бесконечный
action-name-insert-self = Залезть внутрь. action-name-insert-self = Залезть внутрь.
action-name-insert-other = Засунуть внутрь. action-name-insert-other = Засунуть внутрь.
action-start-insert-self = Вы начинаете залазить в {$storage}. action-start-insert-self = Вы начинаете залазить в {$storage}.

View File

@@ -1,5 +1,5 @@
ent-DrinkShaker = шейкер ent-DrinkShaker = шейкер
.desc = Хэй диджей хэй битмейкер. .desc = Надежный товарищ бармена.
.suffix = { "" } .suffix = { "" }
ent-DrinkShotGlass = стопка ent-DrinkShotGlass = стопка
.desc = Идеально подходит для того, чтобы со злостью ударить ей по столу. .desc = Идеально подходит для того, чтобы со злостью ударить ей по столу.

View File

@@ -263,7 +263,7 @@ uplink-super-surplus-bundle-desc = Содержит случайное снар
# Tools # Tools
uplink-toolbox-name = Ящик инструментов uplink-toolbox-name = Ящик инструментов
uplink-toolbox-desc = Полный набор инструментов для предателя с тягой к механике. Включает пару изолированных боевых перчаток, противогаз синдиката и плечевую кобуру. uplink-toolbox-desc = Полный набор инструментов для предателя с тягой к механике. Включает пару изолированных боевых перчаток, противогаз синдиката и пояс с инструментами.
uplink-syndicate-jaws-of-life-name = Челюсти жизни uplink-syndicate-jaws-of-life-name = Челюсти жизни
uplink-syndicate-jaws-of-life-desc = Комбинация лома и кусачек. Полезно для проникновения на станцию или в её отделы. uplink-syndicate-jaws-of-life-desc = Комбинация лома и кусачек. Полезно для проникновения на станцию или в её отделы.
@@ -373,10 +373,10 @@ uplink-nocturine-chemistry-bottle-name = Бутылка ноктурина
uplink-nocturine-chemistry-bottle-desc = Химическое вещество, усыпляющее вашу цель. uplink-nocturine-chemistry-bottle-desc = Химическое вещество, усыпляющее вашу цель.
uplink-stimpack-name = Стимпак uplink-stimpack-name = Стимпак
uplink-stimpack-desc = Легендарный химикат, производимый компанией Donk Co. для Синдиката. Введя его себе, вы увеличите скорость бега и сможете быстрее восстанавливаться после оглушения в течение 30 секунд. uplink-stimpack-desc = Легендарный химикат, производимый компанией Donk Co. для Синдиката. Введя его себе, вы увеличите скорость бега и сможете быстрее восстанавливаться после оглушения в течение 5 минут.
uplink-stimkit-name = Стимкит uplink-stimkit-name = Стимкит
uplink-stimkit-desc = Набор медикаментов, содержащий 6 стимулирующих микроинъекторов, каждый из которых вводит вам достаточное количество стимуляторов на 15 секунд. uplink-stimkit-desc = Набор медикаментов, содержащий 6 стимулирующих микроинъекторов, каждый из которых вводит вам достаточное количество стимуляторов на чуть больее одной минуты.
uplink-syndicate-segway-crate-name = Сегвей Синдиката uplink-syndicate-segway-crate-name = Сегвей Синдиката
uplink-syndicate-segway-crate-desc = Будь врагом корпорации, в стиле! uplink-syndicate-segway-crate-desc = Будь врагом корпорации, в стиле!

View File

@@ -44,3 +44,4 @@
DrinkWineCan: 4 DrinkWineCan: 4
emaggedInventory: emaggedInventory:
DrinkPoisonWinebottleFull: 2 DrinkPoisonWinebottleFull: 2
DrinkShakerEphedrineInfinite: 1

View File

@@ -22,5 +22,5 @@
FoodButter: 4 FoodButter: 4
FoodCheese: 1 FoodCheese: 1
FoodMeat: 6 FoodMeat: 6
Eftpos: 4 emaggedInventory:
MaterialGunpowder60: 1 # For bomb cooking

View File

@@ -24,7 +24,9 @@
ChemicalCartridgeSugar: 1 ChemicalCartridgeSugar: 1
ChemicalCartridgeSulfur: 1 ChemicalCartridgeSulfur: 1
emaggedInventory: emaggedInventory:
VestineChemistryVial: 1
ToxinChemistryBottle: 1 ToxinChemistryBottle: 1
ChemicalCartridgeNapalm: 1
- type: vendingMachineInventory - type: vendingMachineInventory
id: ChemVendInventorySyndicate id: ChemVendInventorySyndicate

View File

@@ -1,4 +1,4 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: DinnerwareInventory id: DinnerwareInventory
startingInventory: startingInventory:
ButchCleaver: 1 ButchCleaver: 1
@@ -24,3 +24,6 @@
DrinkMugOne: 1 DrinkMugOne: 1
DrinkMugRainbow: 2 DrinkMugRainbow: 2
DrinkMugRed: 2 DrinkMugRed: 2
Eftpos: 4
emaggedInventory:
WetStone: 1

View File

@@ -14,3 +14,5 @@
InflatableDoorStack1: 8 InflatableDoorStack1: 8
RCD: 3 # WD RCD: 3 # WD
RCDAmmo: 3 # WD RCDAmmo: 3 # WD
emaggedInventory:
PowerCellMicroreactor: 1

View File

@@ -651,3 +651,13 @@
Gunpowder: 100 Gunpowder: 100
- type: Item - type: Item
size: Tiny size: Tiny
# WD
- type: entity
parent: MaterialGunpowder
id: MaterialGunpowder60
suffix: 60
components:
- type: Stack
stackType: Gunpowder
count: 60

View File

@@ -44,7 +44,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 50 damage: 10
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
@@ -52,6 +52,10 @@
- type: Construction - type: Construction
graph: FireBomb graph: FireBomb
node: firebomb node: firebomb
- type: TriggerOnSignal
- type: DeviceLinkSink
ports:
- Trigger
# has igniter but no fuel or wires # has igniter but no fuel or wires
- type: entity - type: entity

View File

@@ -32,7 +32,7 @@
Heat: 10 Heat: 10
- type: PacifismDangerousAttack - type: PacifismDangerousAttack
- type: Explosive - type: Explosive
explosionType: Default explosionType: FireBomb # WD EDIT
totalIntensity: 120 # ~ 5 tile radius totalIntensity: 120 # ~ 5 tile radius
canCreateVacuum: false canCreateVacuum: false
@@ -75,7 +75,7 @@
Quantity: 5000 Quantity: 5000
maxVol: 5000 maxVol: 5000
- type: Explosive - type: Explosive
explosionType: Default explosionType: FireBomb # WD EDIT
totalIntensity: 140 totalIntensity: 140
canCreateVacuum: false canCreateVacuum: false

View File

@@ -25,21 +25,13 @@
Asphyxiation: 2 Asphyxiation: 2
Narcotic: Narcotic:
effects: effects:
- !type:GenericStatusEffect
key: SeeingRainbows
component: SeeingRainbows
type: Add
time: 4
refresh: false
- !type:MovespeedModifier - !type:MovespeedModifier
walkSpeedModifier: 1.35 walkSpeedModifier: 1.35
sprintSpeedModifier: 1.35 sprintSpeedModifier: 1.35
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: Stutter key: Stutter
component: StutteringAccent component: StutteringAccent
- !type:GenericStatusEffect - !type:NarcoticMoodEffect
key: NarcoticEffect
component: NarcoticEffect
- !type:Jitter - !type:Jitter
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: Stun key: Stun
@@ -77,12 +69,6 @@
metabolisms: metabolisms:
Narcotic: Narcotic:
effects: effects:
- !type:GenericStatusEffect
key: SeeingRainbows
component: SeeingRainbows
type: Add
time: 4
refresh: false
- !type:MovespeedModifier - !type:MovespeedModifier
walkSpeedModifier: 1.25 walkSpeedModifier: 1.25
sprintSpeedModifier: 1.25 sprintSpeedModifier: 1.25
@@ -95,9 +81,7 @@
Poison: 2 # this is added to the base damage of the meth. Poison: 2 # this is added to the base damage of the meth.
Asphyxiation: 2 Asphyxiation: 2
- !type:Jitter - !type:Jitter
- !type:GenericStatusEffect - !type:NarcoticMoodEffect
key: NarcoticEffect
component: NarcoticEffect
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: Stun key: Stun
time: 1 time: 1
@@ -328,6 +312,7 @@
metabolisms: metabolisms:
Narcotic: Narcotic:
effects: effects:
- !type:NarcoticMoodEffect
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: SeeingRainbows key: SeeingRainbows
component: SeeingRainbows component: SeeingRainbows
@@ -347,6 +332,7 @@
metabolisms: metabolisms:
Narcotic: Narcotic:
effects: effects:
- !type:NarcoticMoodEffect
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: SeeingRainbows key: SeeingRainbows
component: SeeingRainbows component: SeeingRainbows
@@ -407,6 +393,7 @@
metabolisms: metabolisms:
Narcotic: Narcotic:
effects: effects:
- !type:NarcoticMoodEffect
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: SeeingRainbows key: SeeingRainbows
component: SeeingRainbows component: SeeingRainbows
@@ -425,6 +412,7 @@
metabolisms: metabolisms:
Narcotic: Narcotic:
effects: effects:
- !type:NarcoticMoodEffect
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: SeeingRainbows key: SeeingRainbows
component: SeeingRainbows component: SeeingRainbows

View File

@@ -0,0 +1,18 @@
- type: entity
parent: DrinkShaker
id: DrinkShakerEphedrineInfinite
suffix: Ephedrine, Infinite
components:
- type: SolutionContainerManager
solutions:
drink:
maxVol: 100
reagents:
- ReagentId: Ephedrine
Quantity: 100
- type: SolutionRegeneration
solution: drink
generated:
reagents:
- ReagentId: Ephedrine
Quantity: 1

View File

@@ -1,4 +1,4 @@
- type: entity - type: entity
id: ChemicalCartridge id: ChemicalCartridge
name: chemical cartridge name: chemical cartridge
parent: [DrinkBottleVisualsOpenable, BaseItem] parent: [DrinkBottleVisualsOpenable, BaseItem]
@@ -368,3 +368,18 @@
reagents: reagents:
- ReagentId: Oxygen - ReagentId: Oxygen
Quantity: 500 Quantity: 500
- type: entity
parent: ChemicalCartridge
name: chemical cartridge (napalm)
id: ChemicalCartridgeNapalm
noSpawn: true
components:
- type: Label
currentLabel: reagent-name-napalm
- type: SolutionContainerManager
solutions:
beaker:
reagents:
- ReagentId: Napalm
Quantity: 500

View File

@@ -63,4 +63,4 @@
description: "Я ЧУВСТВУЮ ЭТО, В МОЕЙ КРОВИ НАХОДИТСЯ ЧТО-ТО НЕОБЫЧНОЕ!!" description: "Я ЧУВСТВУЮ ЭТО, В МОЕЙ КРОВИ НАХОДИТСЯ ЧТО-ТО НЕОБЫЧНОЕ!!"
moodChange: enum.MoodChangeLevel.Medium moodChange: enum.MoodChangeLevel.Medium
positive: true positive: true
timeout: 2 timeout: 1

View File

@@ -128,7 +128,7 @@
lightColor: Orange lightColor: Orange
texturePath: /Textures/Effects/fire.rsi texturePath: /Textures/Effects/fire.rsi
fireStates: 6 fireStates: 6
fireStacks: 2 fireStacks: 4 # WD EDIT
# STOP # STOP
# BEFORE YOU ADD MORE EXPLOSION TYPES CONSIDER IF AN EXISTING ONE IS SUITABLE # BEFORE YOU ADD MORE EXPLOSION TYPES CONSIDER IF AN EXISTING ONE IS SUITABLE