Sleeping (#9793)
This commit is contained in:
@@ -77,3 +77,19 @@
|
||||
icon: Objects/Consumable/Food/egg.rsi/icon.png
|
||||
useDelay: 60
|
||||
serverEvent: !type:EggLayInstantActionEvent
|
||||
|
||||
- type: instantAction
|
||||
id: Sleep
|
||||
name: action-name-sleep
|
||||
description: action-desc-sleep
|
||||
checkCanInteract: false
|
||||
icon: Objects/Consumable/Food/egg.rsi/icon.png
|
||||
event: !type:SleepActionEvent
|
||||
|
||||
- type: instantAction
|
||||
id: Wake
|
||||
name: action-name-wake
|
||||
description: action-desc-wake
|
||||
icon: Objects/Consumable/Food/egg.rsi/icon.png
|
||||
checkCanInteract: false
|
||||
event: !type:WakeActionEvent
|
||||
|
||||
@@ -68,3 +68,12 @@
|
||||
gasOverlayState: miasma
|
||||
color: 56941E
|
||||
reagent: Miasma
|
||||
|
||||
- type: gas
|
||||
id: 7
|
||||
name: NitrousOxide
|
||||
specificHeat: 40
|
||||
heatCapacityRatio: 1.3
|
||||
molarMass: 44
|
||||
color: 2887E8
|
||||
reagent: NitrousOxide
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
- 4.75217098 # oxygen
|
||||
- 17.8772147 # nitrogen
|
||||
temperature: 293.15
|
||||
|
||||
|
||||
- type: entity
|
||||
id: NitrogenTankFilled
|
||||
parent: RedOxygenTankFilled
|
||||
@@ -91,6 +91,27 @@
|
||||
- 22.6293856 # nitrogen
|
||||
temperature: 293.15
|
||||
|
||||
- type: entity
|
||||
id: NitrousOxideTankFilled
|
||||
parent: NitrousOxideTank
|
||||
suffix: Filled
|
||||
name: nitrous oxide tank
|
||||
components:
|
||||
- type: GasTank
|
||||
outputPressure: 101.325
|
||||
air:
|
||||
volume: 70
|
||||
moles:
|
||||
- 20.5 # oxygen
|
||||
- 0 # CO2
|
||||
- 0 # Plasma
|
||||
- 0 # Tritium
|
||||
- 0 # Water vapor
|
||||
- 0 # Miasma
|
||||
- 2 # N2O
|
||||
temperature: 293.15
|
||||
|
||||
|
||||
- type: entity
|
||||
id: PlasmaTankFilled
|
||||
parent: PlasmaTank
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
- id: UniformScrubsColorPurple
|
||||
prob: 0.05
|
||||
orGroup: Surgshrubs
|
||||
- id: NitrousOxideTankFilled
|
||||
prob: 0.3
|
||||
- id: ClothingMaskSterile
|
||||
|
||||
- type: entity
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
probability: 0.000427 ## ~5% chance over 120 secs
|
||||
polymorphId: AMIVMorph
|
||||
polymorphMessage: disease-polymorph
|
||||
polymorphSound:
|
||||
polymorphSound:
|
||||
path: /Audio/Animals/monkey_scream.ogg
|
||||
stages:
|
||||
- 2
|
||||
@@ -208,6 +208,22 @@
|
||||
- 1
|
||||
- 2
|
||||
|
||||
- type: disease
|
||||
id: MemeticAmirmir
|
||||
name: Memetic Amirmir
|
||||
effects:
|
||||
- !type:DiseaseGenericStatusEffect
|
||||
probability: 0.015
|
||||
key: ForcedSleep
|
||||
component: ForcedSleeping
|
||||
time: 3
|
||||
type: Add
|
||||
- !type:DiseaseSnough
|
||||
probability: 0.025
|
||||
snoughMessage: disease-yawn
|
||||
snoughSound:
|
||||
collection: Yawns
|
||||
|
||||
- type: disease
|
||||
id: BleedersBite
|
||||
name: Bleeder's Bite
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
- SlowedDown
|
||||
- Stutter
|
||||
- Electrocution
|
||||
- ForcedSleep
|
||||
- type: Body
|
||||
template: AnimalTemplate
|
||||
preset: AnimalPreset
|
||||
@@ -177,6 +178,7 @@
|
||||
- SlowedDown
|
||||
- Stutter
|
||||
- Electrocution
|
||||
- ForcedSleep
|
||||
- type: ThermalRegulator
|
||||
metabolismHeat: 800
|
||||
radiatedHeat: 100
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
- SlurredSpeech
|
||||
- PressureImmunity
|
||||
- Muted
|
||||
- ForcedSleep
|
||||
- type: DiseaseCarrier
|
||||
- type: Blindable
|
||||
# Other
|
||||
|
||||
@@ -161,6 +161,25 @@
|
||||
- Back
|
||||
- suitStorage
|
||||
|
||||
- type: entity
|
||||
parent: GasTankBase
|
||||
id: NitrousOxideTank
|
||||
name: nitrous oxide tank
|
||||
description: Contains a mixture of air and nitrous oxide. Make sure you don't refill it with pure N2O.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Tanks/anesthetic.rsi
|
||||
- type: GasTank
|
||||
outputPressure: 101.325
|
||||
air:
|
||||
volume: 70
|
||||
temperature: 293.15
|
||||
- type: Clothing
|
||||
sprite: Objects/Tanks/anesthetic.rsi
|
||||
Slots:
|
||||
- Back
|
||||
- suitStorage
|
||||
|
||||
- type: entity
|
||||
parent: GasTankBase
|
||||
id: PlasmaTank
|
||||
|
||||
@@ -90,3 +90,23 @@
|
||||
components:
|
||||
- type: GasMiner
|
||||
spawnGas: WaterVapor
|
||||
|
||||
- type: entity
|
||||
name: Miasma gas miner
|
||||
parent: GasMinerBase
|
||||
id: GasMinerMiasma
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: GasMiner
|
||||
spawnGas: Miasma
|
||||
|
||||
- type: entity
|
||||
name: Nitrous Oxide gas miner
|
||||
parent: GasMinerBase
|
||||
id: GasMinerNitrousOxide
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: GasMiner
|
||||
spawnGas: NitrousOxide
|
||||
|
||||
@@ -360,7 +360,7 @@
|
||||
components:
|
||||
- type: Sprite
|
||||
layers:
|
||||
- state: redws
|
||||
- state: greenys
|
||||
- type: GasCanister
|
||||
gasMixture:
|
||||
volume: 1000
|
||||
@@ -390,6 +390,44 @@
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
- type: entity
|
||||
parent: GasCanister
|
||||
id: NitrousOxideCanister
|
||||
name: nitrous oxide canister
|
||||
components:
|
||||
- type: Sprite
|
||||
layers:
|
||||
- state: redws
|
||||
- type: GasCanister
|
||||
gasMixture:
|
||||
volume: 1000
|
||||
moles:
|
||||
- 0 # oxygen
|
||||
- 0 # nitrogen
|
||||
- 0 # CO2
|
||||
- 0 # Plasma
|
||||
- 0 # Tritium
|
||||
- 0 # Water vapor
|
||||
- 0 # Miasma
|
||||
- 1871.71051 # N2O
|
||||
temperature: 293.15
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 300
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
NitrousOxideCanisterBroken:
|
||||
min: 1
|
||||
max: 1
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
|
||||
# Broke Entities
|
||||
|
||||
@@ -512,6 +550,15 @@
|
||||
id: MiasmaCanisterBroken
|
||||
name: broken miasma canister
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: Sprite
|
||||
state: greenys-1
|
||||
|
||||
- type: entity
|
||||
parent: GasCanisterBrokenBase
|
||||
id: NitrousOxideCanisterBroken
|
||||
name: broken nitrous oxide canister
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: Sprite
|
||||
state: redws-1
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
Tritium: danger
|
||||
WaterVapor: danger
|
||||
Miasma: danger
|
||||
NitrousOxide: danger
|
||||
- type: AtmosAlarmable
|
||||
alarmedBy: ["AirAlarm"]
|
||||
- type: AtmosDevice
|
||||
|
||||
@@ -151,6 +151,13 @@
|
||||
ratios:
|
||||
CarbonDioxide: 1.0
|
||||
Nitrogen: -1.0
|
||||
- !type:ModifyLungGas
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Slime
|
||||
ratios:
|
||||
NitrousOxide: 1.0
|
||||
Nitrogen: -1.0
|
||||
|
||||
- type: reagent
|
||||
id: Miasma
|
||||
@@ -215,3 +222,61 @@
|
||||
Blunt: -4
|
||||
Slash: -3
|
||||
Piercing: -3
|
||||
|
||||
- type: reagent
|
||||
id: NitrousOxide
|
||||
name: reagent-name-nitrous-oxide
|
||||
desc: reagent-desc-nitrous-oxide
|
||||
physicalDesc: reagent-physical-desc-gaseous
|
||||
color: "#808080"
|
||||
boilingPoint: -88
|
||||
meltingPoint: -90
|
||||
metabolisms:
|
||||
Gas:
|
||||
effects:
|
||||
- !type:PopupMessage
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: NitrousOxide
|
||||
min: 0.5
|
||||
- !type:OrganType
|
||||
type: Slime
|
||||
shouldHave: false
|
||||
type: Local
|
||||
visualType: Medium
|
||||
messages: [ "effect-sleepy" ]
|
||||
probability: 0.1
|
||||
- !type:MovespeedModifier
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: NitrousOxide
|
||||
min: 1
|
||||
- !type:OrganType
|
||||
type: Slime
|
||||
shouldHave: false
|
||||
walkSpeedModifier: 0.65
|
||||
sprintSpeedModifier: 0.65
|
||||
- !type:GenericStatusEffect
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: NitrousOxide
|
||||
min: 1.8
|
||||
- !type:OrganType
|
||||
type: Slime
|
||||
shouldHave: false
|
||||
key: ForcedSleep
|
||||
component: ForcedSleeping
|
||||
time: 3
|
||||
type: Add
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: NitrousOxide
|
||||
min: 3.5
|
||||
- !type:OrganType
|
||||
type: Slime
|
||||
shouldHave: false
|
||||
ignoreResistances: true
|
||||
damage:
|
||||
types:
|
||||
Poison: 0.25
|
||||
|
||||
@@ -44,6 +44,37 @@
|
||||
probability: 0.33
|
||||
|
||||
|
||||
- type: reagent
|
||||
id: ChloralHydrate
|
||||
name: reagent-name-chloral-hydrate
|
||||
group: Toxins
|
||||
desc: reagent-desc-chloral-hydrate
|
||||
color: "#000067"
|
||||
physicalDesc: reagent-physical-desc-nondescript
|
||||
metabolisms:
|
||||
Poison:
|
||||
effects:
|
||||
- !type:MovespeedModifier
|
||||
walkSpeedModifier: 0.65
|
||||
sprintSpeedModifier: 0.65
|
||||
- !type:GenericStatusEffect
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: ChloralHydrate
|
||||
min: 15
|
||||
key: ForcedSleep
|
||||
component: ForcedSleeping
|
||||
refresh: false
|
||||
type: Add
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: ChloralHydrate
|
||||
min: 20
|
||||
damage:
|
||||
types:
|
||||
Poison: 1.5
|
||||
|
||||
- type: reagent
|
||||
id: Mold
|
||||
name: reagent-name-mold
|
||||
@@ -69,6 +100,7 @@
|
||||
- SpaceFlu
|
||||
- BirdFlew
|
||||
- Plague
|
||||
- MemeticAmirmir
|
||||
|
||||
- type: reagent
|
||||
id: PolytrinicAcid
|
||||
|
||||
@@ -312,4 +312,17 @@
|
||||
Carbon:
|
||||
amount: 1
|
||||
products:
|
||||
MuteToxin: 2 #Lower yield is intentional
|
||||
MuteToxin: 2
|
||||
|
||||
- type: reaction
|
||||
id: ChloralHydrate
|
||||
impact: Medium
|
||||
reactants:
|
||||
Chlorine:
|
||||
amount: 3
|
||||
Ethanol:
|
||||
amount: 1
|
||||
Water:
|
||||
amount: 1
|
||||
products:
|
||||
ChloralHydrate: 1
|
||||
|
||||
@@ -30,3 +30,16 @@
|
||||
id: RobotBeeps
|
||||
files:
|
||||
- /Audio/Effects/Diseases/beepboop.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: Yawns
|
||||
files:
|
||||
- /Audio/Effects/Diseases/yawn1.ogg
|
||||
- /Audio/Effects/Diseases/yawn2.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: Snores
|
||||
files:
|
||||
- /Audio/Effects/Diseases/snore1.ogg
|
||||
- /Audio/Effects/Diseases/snore2.ogg
|
||||
- /Audio/Effects/Diseases/snore3.ogg
|
||||
|
||||
@@ -33,10 +33,13 @@
|
||||
|
||||
- type: statusEffect
|
||||
id: SlurredSpeech
|
||||
|
||||
|
||||
- type: statusEffect
|
||||
id: PressureImmunity
|
||||
|
||||
- type: statusEffect
|
||||
id: Muted
|
||||
alert: Muted
|
||||
|
||||
- type: statusEffect
|
||||
id: ForcedSleep #I.e., they will not wake on damage or similar
|
||||
|
||||
Reference in New Issue
Block a user