[entity] Mega Spray Bottle (#15558)

This commit is contained in:
Nemanja
2023-04-21 05:16:33 -04:00
committed by GitHub
parent 6783bce00b
commit e4642cefcb
8 changed files with 62 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ namespace Content.Server.Chemistry.EntitySystems
_physics.SetLinearDamping(physics, 0f);
_physics.SetAngularDamping(physics, 0f);
_throwing.TryThrow(vapor.Owner, dir * speed, user: user, pushbackRatio: 50f);
_throwing.TryThrow(vapor.Owner, dir * speed, speed, user: user, pushbackRatio: 50f);
var distance = (target.Position - vaporXform.WorldPosition).Length;
var time = (distance / physics.LinearVelocity.Length);

View File

@@ -5,7 +5,7 @@ technologies-cleaning-technology = Cleaning technology
technologies-cleaning-technology-description = Start to a shiny clean station.
technologies-advanced-cleaning-technology = Advanced cleaning technology
technologies-advanced-cleaning-technology-description = Advanced mop won't stop people from trashing the station, sadly.
technologies-advanced-cleaning-technology-description = Advanced tools won't stop people from trashing the station, sadly.
technologies-foodbev-technology = Food and beverage technology
technologies-food-and-beverage-technology-description = Robust service from better technology.

View File

@@ -28,6 +28,7 @@
- Bucket
- MopItem
- SprayBottle
- type: technology
name: technologies-advanced-cleaning-technology
id: AdvancedCleaningTechnology
@@ -37,10 +38,10 @@
state: advmop
requiredPoints: 5000
requiredTechnologies:
- BasicResearch
- CleaningTechnology
unlockedRecipes:
- AdvMopItem
- MegaSprayBottle
# Food/Bev Service Technology Tree

View File

@@ -24,6 +24,7 @@
- type: DrainableSolution
solution: spray
- type: SolutionTransfer
canChangeTransferAmount: true
- type: ItemCooldown
- type: Spray
transferAmount: 10
@@ -33,6 +34,29 @@
- type: TrashOnEmpty
solution: spray
- type: entity
name: mega spray bottle
id: MegaSprayBottle
parent: SprayBottle
suffix: Empty
description: A huge spray bottle, capable of unrivaled janitorial power.
components:
- type: Sprite
netsync: false
sprite: Objects/Specific/Janitorial/janitorial.rsi
state: cleaner_large
- type: SolutionContainerManager
solutions:
spray:
maxVol: 250
- type: Spray
sprayedPrototype: BigVapor
transferAmount: 10
sprayVelocity: 5
sprayAliveTime: 1.5
spraySound:
path: /Audio/Effects/spray2.ogg
- type: entity
name: spray bottle
id: SprayBottleWater
@@ -102,3 +126,26 @@
- Opaque
- type: Appearance
- type: VaporVisuals
- type: entity
id: BigVapor
parent: Vapor
noSpawn: true
components:
- type: Sprite
netsync: false
sprite: Effects/chempuff.rsi
rotation: 90
layers:
- state: chempuff
scale: 2, 2
map: ["enum.VaporVisualLayers.Base"]
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.6,-0.6,0.6,0.6"
hard: false
mask:
- FullTileMask
- Opaque

View File

@@ -221,6 +221,7 @@
- MopItem
- AdvMopItem
- SprayBottle
- MegaSprayBottle
- FireExtinguisher
- KitchenKnife
- ButchCleaver

View File

@@ -27,6 +27,13 @@
materials:
Plastic: 100
- type: latheRecipe
id: MegaSprayBottle
result: MegaSprayBottle
completetime: 3
materials:
Plastic: 250
- type: latheRecipe
id: SprayBottle
result: SprayBottle

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

View File

@@ -10,6 +10,9 @@
{
"name": "cleaner"
},
{
"name": "cleaner_large"
},
{
"name": "mopbucket"
},