Port medibot + bot spawners from nyano (#9854)

* Port medibot + bot spawners from nyano

* Make the injection thresholds constants

* Remove warning

* Check against const in system too

* resolving systems just isn't worth it

* only resolve entity manager once

* Reduceother resolves too

* fix post-merge

* woops
This commit is contained in:
Rane
2022-07-25 11:33:31 -04:00
committed by GitHub
parent 75574b0765
commit 57206eb49c
20 changed files with 448 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
- type: entity
name: medibot spawner
id: SpawnMobMedibot
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- texture: Mobs/Silicon/Bots/medibot.rsi/medibot.png
- type: ConditionalSpawner
prototypes:
- MobMedibot
- type: entity
name: cleanbot spawner
id: SpawnMobCleanBot
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- texture: Mobs/Silicon/Bots/cleanbot.rsi/cleanbot.png
- type: ConditionalSpawner
prototypes:
- MobCleanBot

View File

@@ -156,3 +156,22 @@
maxVol: 30
- type: DrainableSolution
solution: drainBuffer
- type: entity
parent: MobSiliconBase
id: MobMedibot
name: medibot
description: No substitute for a doctor, but better than nothing.
components:
- type: UtilityNPC
behaviorSets:
- MediBot
- type: Medibot
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Silicon/Bots/medibot.rsi
state: medibot
- type: Speech
- type: Construction
graph: MediBot
node: bot

View File

@@ -15,6 +15,9 @@
- key: enum.HealthAnalyzerUiKey.Key
type: HealthAnalyzerBoundUserInterface
- type: HealthAnalyzer
- type: Tag
tags:
- DiscreteHealthAnalyzer
- type: entity
parent: HandheldHealthAnalyzer

View File

@@ -14,6 +14,9 @@
size: 30
sprite: Objects/Specific/Medical/firstaidkits.rsi
HeldPrefix: firstaid
- type: Tag
tags:
- Medkit
- type: entity
name: burn treatment kit

View File

@@ -33,6 +33,11 @@
- BufferNearbyPuddlesExp
- WanderAndWait
- type: behaviorSet
id: MediBot
actions:
- InjectNearbyExp
- type: behaviorSet
id: Spirate
actions:

View File

@@ -0,0 +1,33 @@
- type: constructionGraph
id: MediBot
start: start
graph:
- node: start
edges:
- to: bot
steps:
- tag: Medkit
icon:
sprite: Objects/Specific/Medical/firstaidkits.rsi
state: firstaid
name: medkit
- tag: DiscreteHealthAnalyzer
icon:
sprite: Objects/Specific/Medical/healthanalyzer.rsi
state: analyzer
name: health analyzer
doAfter: 2
- prototype: ProximitySensor
icon:
sprite: Objects/Misc/proximity_sensor.rsi
state: icon
name: promixmity sensor
doAfter: 2
- tag: BorgArm
icon:
sprite: Mobs/Silicon/drone.rsi
state: l_hand
name: borg arm
doAfter: 2
- node: bot
entity: MobMedibot

View File

@@ -23,3 +23,16 @@
icon:
sprite: Mobs/Silicon/Bots/honkbot.rsi
state: honkbot
- type: construction
name: medibot
id: medibot
graph: MediBot
startNode: start
targetNode: bot
category: Utilities
objectType: Item
description: This bot can help supply basic healing.
icon:
sprite: Mobs/Silicon/Bots/medibot.rsi
state: medibot

View File

@@ -144,6 +144,9 @@
- type: Tag
id: Dice
- type: Tag
id: DiscreteHealthAnalyzer #So construction recipes don't eat medical PDAs
- type: Tag
id: Document
@@ -299,6 +302,9 @@
- type: Tag
id: Matchstick
- type: Tag
id: Medkit
- type: Tag
id: Metal