]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Wizard: Smoke Spell (#35403)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Sat, 22 Feb 2025 23:04:42 +0000 (18:04 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2025 23:04:42 +0000 (15:04 -0800)
* Adds smoke spell for wizard

* Adds the actual sprites oops

* Removes repulse attract change

* Removes change again?

Resources/Locale/en-US/store/spellbook-catalog.ftl
Resources/Prototypes/Catalog/spellbook_catalog.yml
Resources/Prototypes/Entities/Effects/chemistry_effects.yml
Resources/Prototypes/Magic/smoke_spell.yml [new file with mode: 0644]
Resources/Textures/Actions/smokeaction.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Actions/smokeaction.rsi/smokeaction.png [new file with mode: 0644]

index 982f0491ed69767d65c35e076e33052e96d98564..fef4061996c5d80528a3fd5416f29eae054bc7e8 100644 (file)
@@ -14,6 +14,9 @@ spellbook-force-wall-desc = Make three walls of pure force that you can pass thr
 spellbook-repulse-name = Repulse
 spellbook-repulse-desc = Tell people to GITTAH`WEIGH and push 'em away from you.
 
+spellbook-smoke-name = Smoke
+spellbook-smoke-desc = Summons a cloud of smoke, it's pretty obvious.
+
 spellbook-polymorph-spider-name = Spider Polymorph
 spellbook-polymorph-spider-desc = Transforms you into a spider, man!
 
index 3fcddc4c7cd7bd6e0bb271d28ce21d7b3e8b4844..81ce664cdaa5c1b98f98980ce88aa92123147e2e 100644 (file)
   - !type:ListingLimitedStockCondition
     stock: 1
 
+- type: listing
+  id: SpellbookSmoke
+  name: spellbook-smoke-name
+  description: spellbook-smoke-desc
+  productAction: ActionSmoke
+  cost:
+    WizCoin: 1
+  categories:
+  - SpellbookDefensive
+  conditions:
+  - !type:ListingLimitedStockCondition
+    stock: 1
+
 # Utility
 - type: listing
   id: SpellbookPolymorphSpider
index 8784ed77cecd70d1e9af2391236dc40c65a7e110..d31a900236e236829aca0bf547da9469102a73e8 100644 (file)
     tags:
     - HideContextMenu
 
+- type: entity
+  parent: Smoke
+  id: WizardSmoke
+  name: smoke
+  categories: [ HideSpawnMenu ]
+  components:
+  - type: Smoke
+    spreadAmount: 5
+
 - type: entity
   parent: BaseFoam
   id: Foam
diff --git a/Resources/Prototypes/Magic/smoke_spell.yml b/Resources/Prototypes/Magic/smoke_spell.yml
new file mode 100644 (file)
index 0000000..5c28606
--- /dev/null
@@ -0,0 +1,14 @@
+- type: entity
+  id: ActionSmoke
+  name: Smoke
+  description: Summons smoke around the user.
+  components:
+  - type: InstantAction
+    useDelay: 10
+    itemIconStyle: BigAction
+    icon:
+      sprite: Actions/smokeaction.rsi
+      state: smokeaction
+    event: !type:InstantSpawnSpellEvent
+      prototype: WizardSmoke
+      posData: !type:TargetInFront
diff --git a/Resources/Textures/Actions/smokeaction.rsi/meta.json b/Resources/Textures/Actions/smokeaction.rsi/meta.json
new file mode 100644 (file)
index 0000000..7812861
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/81b3a082ccdfb425f36bbed6e5bc1f0faed346ec/icons/effects/chemsmoke.dmi modified by keronshb",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "smokeaction"
+    }
+  ]
+}
diff --git a/Resources/Textures/Actions/smokeaction.rsi/smokeaction.png b/Resources/Textures/Actions/smokeaction.rsi/smokeaction.png
new file mode 100644 (file)
index 0000000..d8635da
Binary files /dev/null and b/Resources/Textures/Actions/smokeaction.rsi/smokeaction.png differ