From 9c42fa6798c4e679104d3d58b939d67562e25551 Mon Sep 17 00:00:00 2001 From: Nim <128169402+Nimfar11@users.noreply.github.com> Date: Sun, 1 Oct 2023 17:34:29 +0300 Subject: [PATCH] Slime mobs breathe nitrogen and resprite their organs (#20577) * Slimes breathe nitrogen and resprite their organs * ups * mmm --- .../Prototypes/Body/Organs/Animal/slimes.yml | 56 ++++++++++++++++++ Resources/Prototypes/Body/Organs/slime.yml | 8 ++- .../Body/Prototypes/Animal/slimes.yml | 18 ++++++ .../Prototypes/Entities/Mobs/NPCs/slimes.yml | 3 + .../Slime/organs.rsi/brain-inhand-left.png | Bin 0 -> 228 bytes .../Slime/organs.rsi/brain-inhand-right.png | Bin 0 -> 220 bytes .../Species/Slime/organs.rsi/brain-slime.png | Bin 0 -> 442 bytes .../Species/Slime/organs.rsi/lung-l-slime.png | Bin 0 -> 271 bytes .../Species/Slime/organs.rsi/lung-r-slime.png | Bin 0 -> 273 bytes .../Mobs/Species/Slime/organs.rsi/meta.json | 28 +++++++++ 10 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 Resources/Prototypes/Body/Organs/Animal/slimes.yml create mode 100644 Resources/Prototypes/Body/Prototypes/Animal/slimes.yml create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-r-slime.png create mode 100644 Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json diff --git a/Resources/Prototypes/Body/Organs/Animal/slimes.yml b/Resources/Prototypes/Body/Organs/Animal/slimes.yml new file mode 100644 index 0000000000..f5d9455449 --- /dev/null +++ b/Resources/Prototypes/Body/Organs/Animal/slimes.yml @@ -0,0 +1,56 @@ +- type: entity + id: SentientSlimesCore + parent: [BaseItem, OrganHumanBrain] + name: sentient slimes core + description: "The source of incredible, unending gooeyness." + components: + - type: Sprite + sprite: Mobs/Species/Slime/organs.rsi + state: brain-slime + - type: Stomach + - type: Metabolizer + maxReagents: 3 + metabolizerTypes: [ Slime ] + removeEmpty: true + groups: + - id: Food + - id: Drink + - id: Medicine + - id: Poison + - id: Narcotic + - id: Alcohol + rateModifier: 0.2 + - type: SolutionContainerManager + solutions: + stomach: + maxVol: 30.0 + +- type: entity + id: OrganSlimesLungs + parent: BaseHumanOrgan + name: slimes gas sacs + description: "Collects nitrogen, which slime cells use for maintenance." + components: + - type: Sprite + sprite: Mobs/Species/Slime/organs.rsi + layers: + - state: lung-l-slime + - state: lung-r-slime + - type: Lung + - type: Metabolizer + removeEmpty: true + solutionOnBody: false + solution: "Lung" + metabolizerTypes: [ Slime ] + groups: + - id: Gas + rateModifier: 100.0 + - type: SolutionContainerManager + solutions: + organ: + reagents: + - ReagentId: Nutriment + Quantity: 10 + Lung: + maxVol: 100.0 + canReact: false diff --git a/Resources/Prototypes/Body/Organs/slime.yml b/Resources/Prototypes/Body/Organs/slime.yml index 4bb07da4dc..e6ce18b335 100644 --- a/Resources/Prototypes/Body/Organs/slime.yml +++ b/Resources/Prototypes/Body/Organs/slime.yml @@ -4,6 +4,9 @@ name: sentient slime core description: "The source of incredible, unending gooeyness." components: + - type: Sprite + sprite: Mobs/Species/Slime/organs.rsi + state: brain-slime - type: Stomach - type: Metabolizer maxReagents: 6 @@ -35,9 +38,10 @@ description: "Collects nitrogen, which slime cells use for maintenance." components: - type: Sprite + sprite: Mobs/Species/Slime/organs.rsi layers: - - state: lung-l - - state: lung-r + - state: lung-l-slime + - state: lung-r-slime - type: Lung - type: Metabolizer removeEmpty: true diff --git a/Resources/Prototypes/Body/Prototypes/Animal/slimes.yml b/Resources/Prototypes/Body/Prototypes/Animal/slimes.yml new file mode 100644 index 0000000000..8d9827e99a --- /dev/null +++ b/Resources/Prototypes/Body/Prototypes/Animal/slimes.yml @@ -0,0 +1,18 @@ +- type: body + id: Slimes + name: "slimes" + root: torso + slots: + torso: + part: TorsoSlime + connections: + - legs + organs: + core: SentientSlimesCore + lungs: OrganSlimesLungs + legs: + part: LegsAnimal + connections: + - feet + feet: + part: FeetAnimal diff --git a/Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml b/Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml index 85a0b2afa4..4d56face9d 100644 --- a/Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml +++ b/Resources/Prototypes/Entities/Mobs/NPCs/slimes.yml @@ -94,6 +94,9 @@ type: Local messages: [ "slime-hurt-by-water-popup" ] probability: 0.25 + - type: Body + prototype: Slimes + requiredLegs: 1 - type: CombatMode - type: MeleeWeapon hidden: true diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-left.png new file mode 100644 index 0000000000000000000000000000000000000000..a536818eee96f7113aee27ab26ae8fe27c4670ce GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|=6Sj}hE&XX zdrOh8*+GEyLau4KV}ih5!S)*p+FI4irSzP&3PN(7vLrn;->(d{pFF?RSd$T`uRw45 zivxP!i!1Ga@3H#-ZO8eq7OhWfce}Nf?wr4RnQ!Rjw$y8nr+7WvbVp+$tH}F@UoTgB zKV+SfxOiXo$(x&4fF=OJga57XZ+{ml?A~y)s)j#sJ4d_jf{5K__9cuLw{tKs%sI*4 Wa6?bS*D2}*NVTV{pUXO@geCw|x>!a4 literal 0 HcmV?d00001 diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-inhand-right.png new file mode 100644 index 0000000000000000000000000000000000000000..c7e0adca9a15c579e2379a6dc8b92575977fd95c GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|rg^$JhE&XX zdutfV%1J3mb%;BjlRqUP_t$Wl51EqgkIw($l?Nhc@loS5PX>1k}Xv|7n<& z!SOB6-m4yc^mFyxv(@W&mPjl&=(+stQ@jaKe9hKXTotzRXBVz3P|M%g@JIS2hrt*<7;L0|c^@>$j|+suLT(fR*HwD^y?_W6KR Nd%F6$taD0e0sy#ZSd;(& literal 0 HcmV?d00001 diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/brain-slime.png new file mode 100644 index 0000000000000000000000000000000000000000..b2a611f5118ca17bc49a42a81ccb89165e645acd GIT binary patch literal 442 zcmV;r0Y(0aP)Px$bV)=(R9J=W(=A9tQ5eSY|J;Z8u`uy#6J&^r*ffe+7_JC%hsB^^FlZ5@;EJFk zXb=n&d-6mO}AayJ*F!r*}27Xe(A#HJnzHHIiM(tqWm+L(}S^v zd0~Ga@9a9xkv_Pzwj#2Db|@BzbOyjQNu(}*{>zr}NDbeJi>$u|N+lwl0g`o%THmvw zkBeecdwhKiLfd)XUgA!^|(mkJs@xQ7 zi%goYPm7a-!yy6NyW(MO=IJHoF=5!4-Pl*+tK#E%L_ll|4npe kT1022Ykq!;q9}^(8*rVDq%>>&82|tP07*qoM6N<$f?Gq+H~;_u literal 0 HcmV?d00001 diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png b/Resources/Textures/Mobs/Species/Slime/organs.rsi/lung-l-slime.png new file mode 100644 index 0000000000000000000000000000000000000000..0c4591ed9bf5dc73e8ebe3d62c29c235af420396 GIT binary patch literal 271 zcmV+q0r38bP)Px#$w@>(R9J=Wlrav1KoCVA#6&HKfl7!4u{9R7R^Gkfxar&l3ElTWv9zO`F`Y$geI_b|IjX)=Hc7wk^>ij1N3W^%c%HwNb zbasqu`~2SCSc2=*q&3qg2Ay7eX*2(x2|*R=A9*Ip^_`vb%Au=H%uDtF5GZ_n(@Y*V2^5%p`CI=2QL~%`$7KJ$5Ac29QHPmfi#FDJ3 QKyNX4y85}Sb4q9e0HM-rH~;_u literal 0 HcmV?d00001 diff --git a/Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json b/Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json new file mode 100644 index 0000000000..cacfcdc40b --- /dev/null +++ b/Resources/Textures/Mobs/Species/Slime/organs.rsi/meta.json @@ -0,0 +1,28 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Sprited by Nimfar11 (Github) for Space Station 14", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "brain-slime" + }, + { + "name": "brain-inhand-left", + "directions": 4 + }, + { + "name": "brain-inhand-right", + "directions": 4 + }, + { + "name": "lung-l-slime" + }, + { + "name": "lung-r-slime" + } + ] +} -- 2.51.2