]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Flora anomaly seeds (#31987)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Sat, 21 Sep 2024 19:54:56 +0000 (22:54 +0300)
committerGitHub <noreply@github.com>
Sat, 21 Sep 2024 19:54:56 +0000 (21:54 +0200)
* content

* Update meta.json

* Update mobspawn.yml

* Update mobspawn.yml

* Update Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml

* Update Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml

* Update Resources/Prototypes/Entities/Objects/Specific/Hydroponics/seeds.yml

* Update Resources/Prototypes/Entities/Effects/mobspawn.yml

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
17 files changed:
Resources/Locale/en-US/flavors/flavor-profiles.ftl
Resources/Locale/en-US/nutrition/components/food-sequence.ftl
Resources/Locale/en-US/seeds/seeds.ftl
Resources/Prototypes/Entities/Effects/mobspawn.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml
Resources/Prototypes/Entities/Objects/Specific/Hydroponics/seeds.yml
Resources/Prototypes/Entities/Structures/Specific/Anomaly/cores.yml
Resources/Prototypes/Flavors/flavors.yml
Resources/Prototypes/Hydroponics/seeds.yml
Resources/Prototypes/Recipes/Cooking/food_sequence_element.yml
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/dead.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/harvest.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/produce.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/seed.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-2.png [new file with mode: 0644]

index 3e7cde8449ae5883906ec8d4b06625c896d0f501..0ba65217ef86d04bd8864ac0a21c73dd6fd967c8 100644 (file)
@@ -20,6 +20,7 @@ flavor-base-fishy = fishy
 flavor-base-crabby = crabby
 flavor-base-cheesy = cheesy
 flavor-base-funny = funny
+flavor-base-strange = strange
 flavor-base-tingly = tingly
 flavor-base-acid = acidic
 flavor-base-leafy = leafy
index 97dd7ffcc6a12b2bbdf9b9a5a8be2357ecfa45dd..b21d2a83151066be12bc7dc601a2abfe2fad6855 100644 (file)
@@ -76,6 +76,7 @@ food-sequence-content-berries = berries
 food-sequence-content-spacemans-trumpet = spaceman's trupmet
 food-sequence-content-cherry = cherry
 food-sequence-content-snail = snail
+food-sequence-content-anomaly-berry = anomaly berry
 
 # BURGERS
 
@@ -116,6 +117,7 @@ food-sequence-burger-content-suppermatter = supper
 food-sequence-burger-content-hamster = hams
 food-sequence-burger-content-berries = berri
 food-sequence-burger-content-spacemans-trumpet = spacetrump
+food-sequence-burger-content-anomaly-berry = anom
 food-sequence-burger-content-extradimensional-orange = 3d
 food-sequence-burger-content-world-pea = peace
 
index c8d524ba1d7497cd7bcd83bd01a3979d3a660d73..1ca559db3029f0bf7b7bdf8e90a8843d660cc61c 100644 (file)
@@ -140,3 +140,5 @@ seeds-capfruit-name = capfruit
 seeds-capfruit-display-name = capfruit tree
 seeds-cherry-name = cherry
 seeds-cherry-display-name = cherry tree
+seeds-anomaly-berry-name = anomaly berry
+seeds-anomaly-berry-display-name = anomaly berries
index c4396a775da93e1e8f2df208dedd5d3c8849d38f..1489c26493abd1f186f7bdef13d09ce4efe2ce54 100644 (file)
     tags:
       - HideContextMenu
   - type: AnimationPlayer
-  - type: RandomSpawner
+  - type: EntityTableSpawner
     deleteSpawnerAfterSpawn: false
-    rareChance: 0.1
-    offset: 0.3
-    chance: 1
-    prototypes:
-    - FoodAmbrosiaVulgaris
-    - FoodAloe
-    - FoodCabbage
-    - FoodCarrot
-    - FoodGalaxythistle
-    - FoodLemon
-    - FoodLime
-    - FoodPeaPod
-    - FoodPineapple
-    - FoodOnionRed
-    - FoodWatermelon
-    - FoodAmbrosiaVulgaris
-    - FoodAloe
-    - FoodCabbage
-    - FoodCarrot
-    - FoodGalaxythistle
-    - FoodLemon
-    - FoodLime
-    - FoodPeaPod
-    - FoodPineapple
-    - FoodOnionRed
-    - FoodWatermelon
-    - FoodGatfruit
-    - MobTomatoKiller
-    rarePrototypes:
-    - MobLuminousEntity
-    - MobLuminousObject
+    table: !type:NestedSelector
+      tableId: AnomalyFloraLootTable
+
+- type: entityTable
+  id: AnomalyFloraLootTable
+  table: !type:GroupSelector
+    children:
+    - id: FoodAmbrosiaVulgaris
+    - id: FoodAloe
+    - id: FoodCabbage
+    - id: FoodGalaxythistle
+    - id: FoodLemon
+    - id: FoodLime
+    - id: FoodPeaPod
+    - id: FoodPineapple
+    - id: FoodOnionRed
+    - id: FoodWatermelon
+    - id: FoodCherry
+    - id: MobTomatoKiller
+    - id: MobLuminousEntity
+    - id: MobLuminousObject
+    - id: FoodGatfruit # 0.007% spawn chance. 1 / 141
+      weight: 0.10
index 42fd0967ff190fe36631115734f92c5f7bdea830..fa88f30074ea51262a9339ba78f7cf73c04d65f6 100644 (file)
     seedId: cherry
   - type: SpaceGarbage
   - type: BadFood
+
+- type: entity
+  name: anomaly berry
+  description: A strange blue fruit. Something about it doesn't seem right.
+  parent: FoodProduceBase
+  id: FoodAnomalyBerry
+  components:
+  - type: FlavorProfile
+    flavors:
+      - strange
+  - type: Sprite
+    sprite: Objects/Specific/Hydroponics/anomaly_berry.rsi
+    state: produce
+  - type: Produce
+    seedId: anomalyBerry
+  - type: Food
+    trash:
+    - EffectAnomalyFloraBulb # Random loot
+  - type: SolutionContainerManager
+    solutions:
+      food:
+        maxVol: 5
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 2
+        - ReagentId: Vitamin
+          Quantity: 2
+        - ReagentId: Artifexium
+          Quantity: 1
+  - type: Tag
+    tags:
+    - Fruit
+  - type: FoodSequenceElement
+    entries:
+      Taco: AnomalyBerry
+      Burger: AnomalyBerryBurger
\ No newline at end of file
index 6015a8bf013b49e4f192044fef8276a3ac3ea21f..1ad3dd5bdf26dac6fb039b1384823847c25efdc4 100644 (file)
       seedId: cherry
     - type: Sprite
       sprite: Objects/Specific/Hydroponics/cherry.rsi
+
+- type: entity
+  parent: SeedBase
+  name: packet of anomaly berry seeds
+  id: AnomalyBerrySeeds
+  components:
+    - type: Seed
+      seedId: anomalyBerry
+    - type: Sprite
+      sprite: Objects/Specific/Hydroponics/anomaly_berry.rsi
index 71065a8e3d50de979f57dd2e9fd28a11492ab915..315505b81e9be6e655c072dcdeec8a668243aa19 100644 (file)
   id: AnomalyCoreFlora
   suffix: Flora
   components:
+  - type: Seed
+    seedId: anomalyBerry
   - type: Sprite
     sprite: Structures/Specific/Anomalies/Cores/flora_core.rsi
   - type: PointLight
   id: AnomalyCoreFloraInert
   suffix: Flora, Inert
   components:
+  - type: Seed
+    seedId: anomalyBerry
   - type: Sprite
     sprite: Structures/Specific/Anomalies/Cores/flora_core.rsi
   - type: PointLight
index 3f536c871ae229b0992387e8310f0d4d294a261a..a351e942e83879f0662b9c9d1720d882bb941382 100644 (file)
   flavorType: Base
   description: flavor-base-funny
 
+- type: flavor
+  id: strange
+  flavorType: Base
+  description: flavor-base-strange
+
 - type: flavor
   id: tingly
   flavorType: Base
index 54c5c29d55689bc09da8489e9f5e822541eca0a3..07e08ef75b8c05c29b34046296f9a4295f346f56 100644 (file)
       Min: 1
       Max: 3
       PotencyDivisor: 40
+
+- type: seed
+  id: anomalyBerry
+  name: seeds-anomaly-berry-name
+  noun: seeds-noun-seeds
+  displayName: seeds-anomaly-berry-display-name
+  plantRsi: Objects/Specific/Hydroponics/anomaly_berry.rsi
+  packetPrototype: AnomalyBerrySeeds
+  productPrototypes:
+    - FoodAnomalyBerry
+  lifespan: 25
+  maturation: 12
+  production: 3
+  yield: 3
+  potency: 10
+  growthStages: 2
+  waterConsumption: 0.60
+  nutrientConsumption: 0.50
+  chemicals:
+    Artifexium:
+      Min: 1
+      Max: 1
+      PotencyDivisor: 4
+    Nutriment:
+      Min: 1
+      Max: 2
+      PotencyDivisor: 30
+    Vitamin:
+      Min: 1
+      Max: 2
+      PotencyDivisor: 40
index 43d6fe8852bab22d3573dadac80849a1dbe0666e..0654376442c94c50f2143b79b2fb1079c36c2e76 100644 (file)
   sprites:
   - sprite: Objects/Consumable/Food/Baked/cake.rsi
     state: suppermatter-shard
+
+
+# Anomaly berries
+
+- type: foodSequenceElement
+  id: AnomalyBerry
+  name: food-sequence-content-anomaly-berry
+  sprites:
+  - sprite: Objects/Specific/Hydroponics/anomaly_berry.rsi
+    state: produce
+
+- type: foodSequenceElement
+  id: AnomalyBerryBurger
+  name: food-sequence-burger-content-anomaly-berry
+  sprites:
+  - sprite: Objects/Specific/Hydroponics/anomaly_berry.rsi
+    state: produce
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/dead.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/dead.png
new file mode 100644 (file)
index 0000000..e6082a5
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/dead.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/harvest.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/harvest.png
new file mode 100644 (file)
index 0000000..5a40528
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/harvest.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/meta.json b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/meta.json
new file mode 100644 (file)
index 0000000..7d86d10
--- /dev/null
@@ -0,0 +1,29 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Created by TheShuEd for Space Station 14",
+  "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/anomaly_berry.rsi/produce.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/produce.png
new file mode 100644 (file)
index 0000000..ce9f83b
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/produce.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/seed.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/seed.png
new file mode 100644 (file)
index 0000000..dd6f8ea
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/seed.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-1.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-1.png
new file mode 100644 (file)
index 0000000..b6511c4
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-1.png differ
diff --git a/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-2.png b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-2.png
new file mode 100644 (file)
index 0000000..c3ba2f7
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Hydroponics/anomaly_berry.rsi/stage-2.png differ