From 342cac701392ad1c95c3927c83bc259262781716 Mon Sep 17 00:00:00 2001 From: Fansana Date: Tue, 3 Sep 2024 22:24:10 +0200 Subject: [PATCH] add gems --- .../Floof/Entities/Objects/Materials/gem.yml | 142 ++++++++++++++++++ .../Shards/gem.rsi/equipped-NECK.png | Bin 0 -> 189 bytes .../Objects/Materials/Shards/gem.rsi/gem.png | Bin 0 -> 862 bytes .../Materials/Shards/gem.rsi/meta.json | 30 ++++ 4 files changed, 172 insertions(+) create mode 100644 Resources/Prototypes/Floof/Entities/Objects/Materials/gem.yml create mode 100644 Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/equipped-NECK.png create mode 100644 Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/gem.png create mode 100644 Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/meta.json diff --git a/Resources/Prototypes/Floof/Entities/Objects/Materials/gem.yml b/Resources/Prototypes/Floof/Entities/Objects/Materials/gem.yml new file mode 100644 index 00000000000..99f3487a7ea --- /dev/null +++ b/Resources/Prototypes/Floof/Entities/Objects/Materials/gem.yml @@ -0,0 +1,142 @@ +- type: entity + abstract: true + parent: BaseItem + id: GemCrystalBase + name: gem + description: A large gem, perfectly cut to shed light in the darkest of places. + components: + - type: Clothing + sprite: Floof/Objects/Materials/Shards/gem.rsi + quickEquip: true + slots: + - neck + - type: Sprite + layers: + - sprite: Floof/Objects/Materials/Shards/gem.rsi + state: gem + map: [ "enum.DamageStateVisualLayers.Base" ] + - type: MeleeWeapon + wideAnimationRotation: -22.5 + attackRate: 1.5 + damage: + types: + Slash: 3.5 + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Glass + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: StaticPrice + price: 1050 + +- type: entity + parent: GemCrystalBase + id: GemCrystalCyan + name: cyan crystal shard + description: A small piece of crystal. + components: + - type: Sprite + color: "#47f8ff" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#47f8ff" + - type: Tag + tags: + - CrystalCyan + +- type: entity + parent: GemCrystalBase + name: blue crystal shard + id: GemCrystalBlue + components: + - type: Sprite + color: "#39a1ff" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#39a1ff" + - type: Tag + tags: + - CrystalBlue + +- type: entity + parent: GemCrystalBase + id: GemCrystalOrange + name: orange crystal shard + components: + - type: Sprite + color: "#ff8227" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#ff8227" + - type: Tag + tags: + - CrystalOrange + +- type: entity + parent: GemCrystalBase + id: GemCrystalPink + name: pink crystal shard + components: + - type: Sprite + color: "#ff66cc" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#ff66cc" + - type: Tag + tags: + - CrystalPink + +- type: entity + parent: GemCrystalBase + id: GemCrystalGreen + name: green crystal shard + components: + - type: Sprite + color: "#52ff39" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#52ff39" + - type: Tag + tags: + - CrystalGreen + +- type: entity + parent: GemCrystalBase + id: GemCrystalRed + name: red crystal shard + components: + - type: Sprite + color: "#fb4747" + - type: PointLight + radius: 4 + energy: 3.5 + color: "#fb4747" + - type: Tag + tags: + - CrystalRed + +- type: entity + parent: GemCrystalBase + id: GemCrystalRandom + name: random crystal shard + components: + - type: RandomSpawner + prototypes: + - GemCrystalGreen + - GemCrystalPink + - GemCrystalOrange + - GemCrystalBlue + - GemCrystalCyan + - GemCrystalRed + chance: 1 diff --git a/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/equipped-NECK.png b/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/equipped-NECK.png new file mode 100644 index 0000000000000000000000000000000000000000..1f79e2ae820263367e4d1e59dee13deb9351f4c4 GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|$~|2iLn`LH zy}Xh4kOL2EKzpm6$AzUQtr8`UEl6Qgv2uFY=_D**sy^}2z3hFf^~K9r7#J=rTDL91 zLT=jkn))+WYyWRstt;{U?~l1>cgE^JKNDkAe5-1De8~Kqw7R$jQ!d@(b~&P{G%uS8 dXc-LLu4cU7Dw29ElCvEo=xlLs9?$ literal 0 HcmV?d00001 diff --git a/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/gem.png b/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/gem.png new file mode 100644 index 0000000000000000000000000000000000000000..7b2fa53627790d89a8f924347ffebb52778ebfde GIT binary patch literal 862 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K56gb#`HRt$imi%)-bp-`t$hV`-3K!@owxdp^Fh*$uB& zum5-QYqlOkpa|oJARV{q`mt79_6MzeV8O?*Etfe!M=UZbu8;BfJch4V!~Z||mF~l~ z5vc6>`MJuo&&qX$uMW+*eQaB9%=Og8AxYWU+~+?lO)g%&zRvdd$BI1*f4k59zj@im z`M!RB|GwRrH&5=^v11uoS&#nhtv+-9yt~Am)GM3gHAEufDwJo4dO^ zD}McQdiz@_*o9Ii^wf@er$-m#WpR+u6r_!SdIE@-_GFnDjC4Sa+}BzT_}{1v#B|8<_yo=xpO0?vHtn-UhqL-xVZnNOol@SCbnCD zy;@!GRlAt=K%tCKCkr<>_m-_&4Gj$$9V*MGfBL?D!XbkvPgjTY@Y*WR+~ZkXy!q$V zl|WZ5zXY^(Nzlq0j~*qlJXpK-;@1~~-@d+P$jQ%V-mq(zm(s)=|9!o^xxKx;?|7&s zw>mx4xV~!NuUG$%?)$j>z~;@HFJ8}@`eSQ$`=jb_Y=$;AXV%`{{`!~Z5}<41|L^-~ z-OxYZ?x>fvG`pSto$7NdLdrM~PuRIrpW*k%svxk}^p()T{|))pn}R1cZ9d!u%ocp9 e5uRzjz6@GGHU|)cz@^~HAj;F#&t;ucLK6T}^rz+k literal 0 HcmV?d00001 diff --git a/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/meta.json b/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/meta.json new file mode 100644 index 00000000000..772e5f29ca7 --- /dev/null +++ b/Resources/Textures/Floof/Objects/Materials/Shards/gem.rsi/meta.json @@ -0,0 +1,30 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Made by dakodragon", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "gem", + "delays": [ + [ + 2, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1 + ] + ] + }, + { + "name": "equipped-NECK", + "directions": 4 + } + ] +}