Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Mothroaches (space-wizards#1521)
Browse files Browse the repository at this point in the history
* Mothroach init

* Removes the petting conflict

Conflicts with the picking up and it's just annoying honestly.

* Specific sound for it

* Fix incorrect .rsi

* Mothroach accent

* Refix the incorrect .rsi

Big brain moment

* Lowers density of the little bugger

* baseWalkSpeed, nyano tags.yml

* Mothroach 3kg

* Mothroach takes 3x more space as mouse

Just to match the 3x heavier than mouse

* Grindable, SmallMob, Moth damage modifier

Make the bugger grindable into blood and nutriment
Use the normal Moth damage modifier set, meaning they will have the same weakness/resistance
Lowers the asphyxiation rate to match mouse better

* Delete VentCritters.cs

* Update mothroachs to latest changes
  • Loading branch information
FluffiestFloof authored May 10, 2023
1 parent 68b1216 commit 0f376e1
Show file tree
Hide file tree
Showing 25 changed files with 258 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed class VentCrittersRuleComponent : Component
{
"MobMouse",
"MobMouse1",
"MobMouse2"
"MobMouse2",
"MobMothroach"
};
}
Binary file not shown.
7 changes: 7 additions & 0 deletions Resources/Locale/en-US/accent/accents.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@ accent-words-pig-1 = Oink.
accent-words-pig-2 = Oink?
accent-words-pig-3 = Oink!
accent-words-pig-4 = Oink oink!
# Nyanotrasen Mothroach
accent-words-mothroach-1 = Squeak!
accent-words-mothroach-2 = Chirp!
accent-words-mothroach-3 = Peep!
accent-words-mothroach-4 = Eeee!
accent-words-mothroach-5 = Eep!
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/ghost/roles/ghost-role-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ ghost-role-information-medibot-description = Click people to heal them. Heal any
ghost-role-information-cleanbot-name = CleanBot
ghost-role-information-cleanbot-description = Click puddles to mop them up.
ghost-role-information-mothroach-name = Mothroach
ghost-role-information-mothroach-description = A cute but mischievous mothroach.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- type: accent
id: mothroach
fullReplacements:
- accent-words-mothroach-1
- accent-words-mothroach-2
- accent-words-mothroach-3
- accent-words-mothroach-4
- accent-words-mothroach-5
117 changes: 116 additions & 1 deletion Resources/Prototypes/Nyanotrasen/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,119 @@
sprite: Nyanotrasen/Mobs/Pets/whiteferret.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: ferret
state: ferret

- type: entity
name: mothroach
parent: SimpleMobBase
id: MobMothroach
description: This is the adorable by-product of multiple attempts at genetically mixing mothpeople with cockroaches.
components:
- type: GhostRole
makeSentient: true
allowSpeech: true
allowMovement: true
whitelistRequired: false
name: ghost-role-information-mothroach-name
description: ghost-role-information-mothroach-description
- type: GhostTakeoverAvailable
- type: Speech
speechSounds: Chitter
- type: Sprite
drawdepth: SmallMobs
sprite: Nyanotrasen/Mobs/Animals/mothroach.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: mothroach
- type: Item
size: 15
- type: Clothing
quickEquip: false
sprite: Nyanotrasen/Mobs/Animals/mothroach.rsi
equippedPrefix: 0
slots:
- HEAD
- type: Appearance
- type: DamageStateVisuals
states:
Alive:
Base: mothroach
Critical:
Base: mothroach_dead
Dead:
Base: mothroach_dead
- type: Physics
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeCircle
radius: 0.3
density: 10
mask:
- SmallMobMask
layer:
- SmallMobLayer
- type: MobState
- type: MobThresholds
thresholds:
0: Alive
25: Critical
50: Dead
- type: MovementSpeedModifier
baseWalkSpeed : 3.5
baseSprintSpeed : 5
- type: Damageable
damageContainer: Biological
damageModifierSet: Moff # moff
- type: Respirator
damage:
types:
Asphyxiation: 0.5
damageRecovery:
types:
Asphyxiation: -0.5
# TODO: Remove CombatMode when Prototype Composition is added
- type: CombatMode
combatToggleAction:
enabled: false
autoPopulate: false
name: action-name-combat
- type: Butcherable
spawned:
- id: FoodMeatRat
amount: 2
- id: HideMothroach # Gotta make the plushies
amount: 1
prob: 0.5
- type: Extractable
grindableSolutionName: food
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Nutriment
Quantity: 10
- ReagentId: Blood
Quantity: 70
- type: Bloodstream
bloodMaxVolume: 70
- type: ReplacementAccent
accent: mothroach
- type: Vocal
sounds:
Male: Mothroach
Female: Mothroach
Unsexed: Mothroach
wilhelmProbability: 0.001
- type: MobPrice
price: 60
- type: Tag
tags:
- Trash
- CannotSuicide
- type: CanEscapeInventory
- type: HTN
rootTask: IdleEvadeCompound # Make eat food/clothes when a thing
- type: Faction
factions:
- RatPassive
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@
components:
- type: Sprite
state: moff
- type: Construction
graph: MoffPlushie
node: plush

- type: entity
parent: BasePlushieMoff
id: PlushieMoffRandom
name: moth plushie
suffix: Random
description: A cute little mothperson that you can hold in the palm of your hand. This brand comes in many flavors!
description: A cute little mothperson that you can hold in the palm of your hand.
components:
- type: Sprite
sprite: Nyanotrasen/Objects/Fun/Toys/moff.rsi
Expand Down Expand Up @@ -90,4 +93,4 @@
description: A plushie depicting an adorable mothperson with a tiny tophat and tiny kevlar vest. It smells like cigarettes.
components:
- type: Sprite
state: moffbartender
state: moffbartender
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,16 @@
stackType: Bluespace
maxCountOverride: 5
count: 1

- type: entity
parent: BaseItem
id: HideMothroach
name: mothroach hide
description: A thin layer of mothroach hide.
components:
- type: Sprite
sprite: Nyanotrasen/Objects/Materials/mothroach.rsi
state: mothroachhide
- type: Tag
tags:
- MothroachHide
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
- MobLizard
- MobSlug
- MobFrog
- MobMothroach
rareChance: 0.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- type: constructionGraph
id: MoffPlushie
start: start
graph:
- node: start
edges:
- to: plush
steps:
- tag: MothroachHide
icon:
sprite: Nyanotrasen/Objects/Materials/mothroach.rsi
state: mothroachhide
name: mothroach hide
- material: Cloth
amount: 3
doAfter: 5
- node: plush
entity: PlushieMoff
13 changes: 13 additions & 0 deletions Resources/Prototypes/Nyanotrasen/Recipes/Crafting/improvised.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@
icon:
sprite: Objects/Tools/hand_labeler.rsi
state: hand_labeler

- type: construction
name: moth plushie
id: mothplushie
graph: MoffPlushie
startNode: start
targetNode: plush
category: construction-category-misc
description: A cute little moth plushie.
icon:
sprite: Nyanotrasen/Objects/Fun/Toys/moff.rsi
state: moff
objectType: Item
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- type: emoteSounds
id: Mothroach
sound:
path: /Audio/Voice/Moth/squeak_moth.ogg
params:
variation: 0.125
8 changes: 8 additions & 0 deletions Resources/Prototypes/Nyanotrasen/Voice/speech_sounds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- type: speechSounds
id: Chitter
saySound:
path: /Audio/Nyanotrasen/Animals/moth_chitter.ogg
askSound:
path: /Audio/Nyanotrasen/Animals/moth_chitter.ogg
exclaimSound:
path: /Audio/Nyanotrasen/Animals/moth_chitter.ogg
2 changes: 2 additions & 0 deletions Resources/Prototypes/Nyanotrasen/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- type: Tag
id: MothroachHide
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from fulpstation at https://github.com/fulpstation/fulpstation/commit/edb232b692ec9f356ec554ea1971da552b9bc447",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "mothroach",
"directions": 4
},
{
"name": "mothroach_lazy",
"directions": 4
},
{
"name": "mothroach_sleep",
"directions": 4
},
{
"name": "mothroach_dead",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "0-equipped-HELMET",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/fulpstation/fulpstation/commit/edb232b692ec9f356ec554ea1971da552b9bc447",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "mothroachhide"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f376e1

Please sign in to comment.