]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add capfruit, a gatfruit mutation. (#30850)
authorUbaser <134914314+UbaserB@users.noreply.github.com>
Tue, 13 Aug 2024 11:08:40 +0000 (21:08 +1000)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2024 11:08:40 +0000 (13:08 +0200)
* add base

* add fake suffix and flavor fix

* address some reviews

* parent it

* fix test fail

* add FoodSequence support and address small review

13 files changed:
Resources/Locale/en-US/nutrition/components/food-sequence.ftl
Resources/Locale/en-US/seeds/seeds.ftl
Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml
Resources/Prototypes/Entities/Objects/Specific/Hydroponics/seeds.yml
Resources/Prototypes/Flavors/flavors.yml
Resources/Prototypes/Hydroponics/seeds.yml
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/dead.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/harvest.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/produce.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/seed.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-2.png [new file with mode: 0644]

index 5679dd1b521945044110a6fe3877fb80b8c0e89c..442534bdcb89c2940e3f0d2e7645bf6d8c9ac1f3 100644 (file)
@@ -52,6 +52,7 @@ food-sequence-burger-content-ambrosia = ambro
 food-sequence-burger-content-galaxy = galaxy
 food-sequence-burger-content-glasstle = glass
 food-sequence-burger-content-gatfruit = gat
+food-sequence-burger-content-capfruit = cap
 food-sequence-burger-content-rice = rice
 food-sequence-burger-content-soy = soy
 food-sequence-burger-content-koibean = koi
index f98118c23ebb12fd893ff48d27014d57f30bd5a1..edf9275f84cf089f2fcafcdb6c44e3a6b040183d 100644 (file)
@@ -124,3 +124,5 @@ seeds-cotton-name = cotton
 seeds-cotton-display-name = cotton plant
 seeds-pyrotton-name = pyrotton
 seeds-pyrotton-display-name = pyrotton plant
+seeds-capfruit-name = capfruit
+seeds-capfruit-display-name = capfruit tree
index 76256bb81e17d1e4c2ce1d0f6e4425f6d0f6a2b2..fea880706d39de36d312fe33cc2f96fefa4473a8 100644 (file)
           sprite: Objects/Specific/Hydroponics/gatfruit.rsi
           state: produce
 
+- type: entity
+  name: capfruit
+  parent: FoodProduceBase
+  id: FoodRealCapfruit
+  description: A soft but smooth gun-shaped fruit.
+  components:
+  - type: FlavorProfile
+    flavors:
+      - plastic
+  - type: SolutionContainerManager
+    solutions:
+      food:
+        maxVol: 10
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
+        - ReagentId: Sulfur
+          Quantity: 5
+  - type: Sprite
+    sprite: Objects/Specific/Hydroponics/capfruit.rsi
+  - type: Produce
+    seedId: realCapfruit
+  - type: Food
+    trash:
+    - RevolverCapGun
+  - type: Tag
+    tags:
+    - Fruit
+  - type: FoodSequenceElement
+    entries:
+      burger:
+        name: food-sequence-burger-content-capfruit
+        sprite:
+          sprite: Objects/Specific/Hydroponics/capfruit.rsi
+          state: produce
+
+- type: entity
+  name: capfruit
+  parent: FoodRealCapfruit
+  id: FoodFakeCapfruit
+  suffix: Fake
+  components:
+  - type: Produce
+    seedId: fakeCapfruit
+  - type: Food
+    trash:
+    - RevolverCapGunFake
+
 - type: entity
   name: rice bushel
   description: Can be ground into rice, perfect for pudding or sake.
index 61da1a95fca0870bba415500a73e28103602e0c4..65f7988be031f8e5d6e234e6553508fcea2e47bf 100644 (file)
       seedId: pyrotton
     - type: Sprite
       sprite: Objects/Specific/Hydroponics/pyrotton.rsi
+
+- type: entity
+  parent: SeedBase
+  id: RealCapfruitSeeds
+  name: packet of capfruit seeds
+  description: "Is it real, or is it fake?"
+  components:
+    - type: Seed
+      seedId: realCapfruit
+    - type: Sprite
+      sprite: Objects/Specific/Hydroponics/capfruit.rsi
+
+- type: entity
+  parent: RealCapfruitSeeds
+  id: FakeCapfruitSeeds
+  suffix: Fake
+  components:
+    - type: Seed
+      seedId: fakeCapfruit
index 73ded93e0f2d5d03badd27a091cf771c5a3efa09..46dd2939bb304cf4ef77b7458fa381f88827946b 100644 (file)
 - type: flavor
   id: paintthinner
   flavorType: Complex
-  description: flavor-complex-paint-thinner
\ No newline at end of file
+  description: flavor-complex-paint-thinner
index 65fbf0b91d9408a9bd6a48f0a496383ca67380d6..86bce962b84078ddd397e8dd5ded276ddae98ac2 100644 (file)
   packetPrototype: GatfruitSeeds
   productPrototypes:
     - FoodGatfruit
+  mutationPrototypes:
+    - fakeCapfruit
+    - realCapfruit
+  lifespan: 65
+  maturation: 25
+  production: 25
+  yield: 1
+  potency: 10
+  growthStages: 2
+  idealLight: 6
+  chemicals:
+    Nutriment:
+      Min: 1
+      Max: 5
+      PotencyDivisor: 20
+    Sulfur:
+      Min: 1
+      Max: 5
+      PotencyDivisor: 20
+
+- type: seed
+  id: fakeCapfruit
+  name: seeds-capfruit-name
+  noun: seeds-noun-seeds
+  displayName: seeds-capfruit-display-name
+  plantRsi: Objects/Specific/Hydroponics/capfruit.rsi
+  packetPrototype: FakeCapfruitSeeds
+  productPrototypes:
+    - FoodFakeCapfruit
+  lifespan: 65
+  maturation: 25
+  production: 25
+  yield: 1
+  potency: 10
+  growthStages: 2
+  idealLight: 6
+  chemicals:
+    Nutriment:
+      Min: 1
+      Max: 5
+      PotencyDivisor: 20
+    Sulfur:
+      Min: 1
+      Max: 5
+      PotencyDivisor: 20
+
+- type: seed
+  id: realCapfruit
+  name: seeds-capfruit-name
+  noun: seeds-noun-seeds
+  displayName: seeds-capfruit-display-name
+  plantRsi: Objects/Specific/Hydroponics/capfruit.rsi
+  packetPrototype: RealCapfruitSeeds
+  productPrototypes:
+    - FoodRealCapfruit
   lifespan: 65
   maturation: 25
   production: 25
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/dead.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/dead.png
new file mode 100644 (file)
index 0000000..e5ac23c
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/dead.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/harvest.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/harvest.png
new file mode 100644 (file)
index 0000000..a39a794
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/harvest.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/meta.json b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/meta.json
new file mode 100644 (file)
index 0000000..037593e
--- /dev/null
@@ -0,0 +1,29 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from https://github.com/tgstation/tgstation/commit/40d89d11ea4a5cb81d61dc1018b46f4e7d32c62a, redrawn by Ubaser.",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "dead"
+    },
+    {
+      "name": "harvest"
+    },
+    {
+      "name": "produce"
+    },
+    {
+      "name": "seed"
+    },
+    {
+      "name": "stage-1"
+    },
+    {
+      "name": "stage-2"
+    }
+  ]
+}
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/produce.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/produce.png
new file mode 100644 (file)
index 0000000..e4c043f
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/produce.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/seed.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/seed.png
new file mode 100644 (file)
index 0000000..021f448
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/seed.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-1.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-1.png
new file mode 100644 (file)
index 0000000..b62b6da
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-1.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-2.png b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-2.png
new file mode 100644 (file)
index 0000000..62c5d75
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/capfruit.rsi/stage-2.png differ