]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[mob] Space Spider (#15744)
authorNim <128169402+Nimfar11@users.noreply.github.com>
Wed, 26 Apr 2023 06:51:40 +0000 (09:51 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 06:51:40 +0000 (00:51 -0600)
* Space Spider

* git name

Resources/Prototypes/Entities/Markers/Spawners/Random/salvage.yml
Resources/Prototypes/Entities/Markers/Spawners/mobs.yml
Resources/Prototypes/Entities/Mobs/NPCs/space.yml
Resources/Prototypes/Entities/Objects/Misc/eggspider.yml [new file with mode: 0644]
Resources/Textures/Mobs/Animals/spacespider.rsi/glow.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/spacespider.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider_dead.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/eggspider.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/eggspider.rsi/meta.json [new file with mode: 0644]

index 8ba42ef982e345b8cbdac228bccb56a8e789009b..21e7c0223c6028b17327f1f7874eec3a3115f27d 100644 (file)
   - type: ConditionalSpawner
     prototypes:
     - MobKangarooSpaceSalvage
+
+- type: entity
+  name: Salvage Space Spider Spawner
+  id: SpawnMobSpiderSalvage
+  parent: MarkerBase
+  components:
+  - type: Sprite
+    layers:
+    - state: green
+  - type: ConditionalSpawner
+    prototypes:
+    - MobSpiderSpaceSalvage
index c3ec6edb3e6adec9507a26967388a94cfbe5ba96..53e1aa0fcc5d0e0522c73756ef2f2c8f9b8f297d 100644 (file)
   - type: ConditionalSpawner
     prototypes:
     - MobBoxingKangaroo
+
+- type: entity
+  name: Space Spider Spawner
+  id: SpawnMobSpaceSpider
+  parent: MarkerBase
+  components:
+  - type: Sprite
+    layers:
+    - state: green
+    - state: ai
+  - type: ConditionalSpawner
+    prototypes:
+    - MobSpiderSpace
index 2968b53ce0550d6dffe021f67411087c33b8a3c5..f5c264ebab68c4fabfccd658a9e1f9ba86536b28 100644 (file)
     description: |
       Defend the loot inside the salvage wreck!
   - type: SalvageMobRestrictions
+
+- type: entity
+  name: space spider
+  id: MobSpiderSpace
+  parent: MobSpaceBasic
+  description: It's so glowing, it looks dangerous.
+  components:
+  - type: Sprite
+    drawdepth: Mobs
+    netsync: false
+    sprite: Mobs/Animals/spacespider.rsi
+    layers:
+    - map: [ "enum.DamageStateVisualLayers.Base" ]
+      state: spacespider
+    - map: [ "enum.DamageStateVisualLayers.BaseUnshaded" ]
+      state: glow
+      shader: unshaded
+  - type: MobThresholds
+    thresholds:
+      0: Alive
+      90: Critical
+      130: Dead
+  - type: Stamina
+    excess: 150
+  - type: DamageStateVisuals
+    states:
+      Alive:
+        Base: spacespider
+        BaseUnshaded: glow
+      Critical:
+        Base: spacespider_dead
+      Dead:
+        Base: spacespider_dead
+  - type: Butcherable
+    spawned:
+    - id: FoodMeatSpider
+      amount: 2
+    - id: EggSpider
+      amount: 1
+      prob: 0.5
+  - type: Bloodstream
+    bloodMaxVolume: 250
+    bloodReagent: Cryoxadone
+  - type: Fixtures
+    fixtures:
+    - shape:
+        !type:PhysShapeCircle
+        radius: 0.35
+      density: 120
+      mask:
+      - MobMask
+      layer:
+      - MobLayer
+  - type: MeleeWeapon
+    hidden: true
+    soundHit:
+      path: /Audio/Effects/bite.ogg
+    angle: 0
+    animation: WeaponArcBite
+    damage:
+      types:
+        Piercing: 6
+        Poison: 2
+  - type: SolutionContainerManager
+    solutions:
+      melee:
+        reagents:
+        - ReagentId: ChloralHydrate
+          Quantity: 60
+  - type: MeleeChemicalInjector
+    solution: melee
+    transferAmount: 3
+  - type: ReplacementAccent
+    accent: xeno
+  - type: InteractionPopup
+    successChance: 0.20
+    interactSuccessString: petting-success-tarantula
+    interactFailureString: petting-failure-generic
+  - type: PointLight
+    radius: 1.2
+    energy: 2
+    color: "#4faffb"
+  - type: NoSlip
+  - type: IgnoreSpiderWeb
+  - type: GhostRole
+    prob: 0.30
+    name: space spider
+    description: |
+      Space spiders are just as aggressive as regular spiders, feed.
+
+- type: entity
+  id: MobSpiderSpaceSalvage
+  parent: MobSpiderSpace
+  suffix: "Salvage Ruleset"
+  components:
+  - type: GhostRole
+    prob: 0.30
+    name: space spider on salvage wreck
+    description: |
+      Space spiders are just as aggressive as regular spiders, feed.
+  - type: SalvageMobRestrictions
diff --git a/Resources/Prototypes/Entities/Objects/Misc/eggspider.yml b/Resources/Prototypes/Entities/Objects/Misc/eggspider.yml
new file mode 100644 (file)
index 0000000..f53e39e
--- /dev/null
@@ -0,0 +1,23 @@
+- type: entity
+  parent: BaseItem
+  id: EggSpider
+  name: egg spider
+  description: Is it a gemstone? Is it an egg? It looks expensive.
+  components:
+  - type: Sprite
+    sprite: Objects/Misc/eggspider.rsi
+    state: icon
+  - type: MeleeWeapon
+    damage:
+      types:
+        Blunt: 6
+        Structural: 2
+    animation: WeaponArcPunch
+  - type: Item
+    size: 5
+  - type: PointLight
+    radius: 1.5
+    energy: 3
+    color: "#4faffb"
+  - type: StaticPrice
+    price: 500
diff --git a/Resources/Textures/Mobs/Animals/spacespider.rsi/glow.png b/Resources/Textures/Mobs/Animals/spacespider.rsi/glow.png
new file mode 100644 (file)
index 0000000..ee43579
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/spacespider.rsi/glow.png differ
diff --git a/Resources/Textures/Mobs/Animals/spacespider.rsi/meta.json b/Resources/Textures/Mobs/Animals/spacespider.rsi/meta.json
new file mode 100644 (file)
index 0000000..910780d
--- /dev/null
@@ -0,0 +1,66 @@
+{
+  "version": 1,
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from https://github.com/tgstation/tgstation/commit/53d1f1477d22a11a99c6c6924977cd431075761b, redone by Nimfar11",
+  "states": [
+    {
+      "name": "spacespider",
+      "directions": 4,
+      "delays": [
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ]
+      ]
+    },
+       {
+      "name": "glow",
+      "directions": 4,
+      "delays": [
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ]
+      ]
+    },
+    {
+      "name": "spacespider_dead"
+    }
+  ]
+}
diff --git a/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider.png b/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider.png
new file mode 100644 (file)
index 0000000..c2ccd76
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider.png differ
diff --git a/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider_dead.png b/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider_dead.png
new file mode 100644 (file)
index 0000000..2d0c4cc
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/spacespider.rsi/spacespider_dead.png differ
diff --git a/Resources/Textures/Objects/Misc/eggspider.rsi/icon.png b/Resources/Textures/Objects/Misc/eggspider.rsi/icon.png
new file mode 100644 (file)
index 0000000..c1d18ba
Binary files /dev/null and b/Resources/Textures/Objects/Misc/eggspider.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Misc/eggspider.rsi/meta.json b/Resources/Textures/Objects/Misc/eggspider.rsi/meta.json
new file mode 100644 (file)
index 0000000..3cc94c8
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Made by Nimfar11 (github) for SS14",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "icon"
+    }
+  ]
+}