mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 23:54:23 +00:00
Change SummoningRecipe
to Node
This commit is contained in:
parent
8ca2325f22
commit
602e7f1f70
3 changed files with 5 additions and 7 deletions
|
@ -1,11 +1,9 @@
|
||||||
@icon("res://behaviours/summoning_recipe.svg")
|
@icon("res://behaviours/summoning_recipe.svg")
|
||||||
extends Node2D
|
extends Node
|
||||||
class_name SummoningRecipe
|
class_name SummoningRecipe
|
||||||
|
|
||||||
|
|
||||||
## A [Node2D] describing a possible recipe that can be performed with the [SummoningCircle].
|
## A [Node] describing a possible recipe that can be performed with the [SummoningCircle].
|
||||||
##
|
|
||||||
## [Node2D] is required instead of [Node] as otherwise the child [Spawner] would lose its relative [field position].
|
|
||||||
|
|
||||||
|
|
||||||
## Emitted when [method do_match] is called, and the [field recipe] is successfully matched.
|
## Emitted when [method do_match] is called, and the [field recipe] is successfully matched.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
inkscape:pagecheckerboard="0"
|
inkscape:pagecheckerboard="0"
|
||||||
inkscape:deskcolor="#d1d1d1"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
inkscape:zoom="13.171875"
|
inkscape:zoom="13.171875"
|
||||||
inkscape:cx="5.5421115"
|
inkscape:cx="5.4661922"
|
||||||
inkscape:cy="7.0225386"
|
inkscape:cy="7.0225386"
|
||||||
inkscape:window-width="1920"
|
inkscape:window-width="1920"
|
||||||
inkscape:window-height="1020"
|
inkscape:window-height="1020"
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<path
|
<path
|
||||||
d="m 137.3,502.65 c 12.5,12.5 32.8,12.5 45.3,0 12.5,-12.5 12.5,-32.8 0,-45.3 l -41.3,-41.3 H 448 c 17.7,0 32,-14.3 32,-32 0,-17.7 -14.3,-32 -32,-32 H 141.3 l 41.4,-41.4 c 12.5,-12.5 12.5,-32.8 0,-45.3 -12.5,-12.5 -32.8,-12.5 -45.3,0 l -96,96 c -12.5,12.5 -12.5,32.8 0,45.3 l 96,96 z"
|
d="m 137.3,502.65 c 12.5,12.5 32.8,12.5 45.3,0 12.5,-12.5 12.5,-32.8 0,-45.3 l -41.3,-41.3 H 448 c 17.7,0 32,-14.3 32,-32 0,-17.7 -14.3,-32 -32,-32 H 141.3 l 41.4,-41.4 c 12.5,-12.5 12.5,-32.8 0,-45.3 -12.5,-12.5 -32.8,-12.5 -45.3,0 l -96,96 c -12.5,12.5 -12.5,32.8 0,45.3 l 96,96 z"
|
||||||
id="path2"
|
id="path2"
|
||||||
style="fill:#8da5f3" />
|
style="fill:#e0e0e0" />
|
||||||
<path
|
<path
|
||||||
d="m 470.6,150.65 c 12.5,-12.5 12.5,-32.8 0,-45.3 l -96,-96 c -12.5,-12.5 -32.8,-12.5 -45.3,0 -12.5,12.5 -12.5,32.8 0,45.3 l 41.4,41.4 H 64 c -17.7,0 -32,14.3 -32,32 0,17.7 14.3,32 32,32 h 306.7 l -41.4,41.4 c -12.5,12.5 -12.5,32.8 0,45.3 12.5,12.5 32.8,12.5 45.3,0 l 96,-96 z"
|
d="m 470.6,150.65 c 12.5,-12.5 12.5,-32.8 0,-45.3 l -96,-96 c -12.5,-12.5 -32.8,-12.5 -45.3,0 -12.5,12.5 -12.5,32.8 0,45.3 l 41.4,41.4 H 64 c -17.7,0 -32,14.3 -32,32 0,17.7 14.3,32 32,32 h 306.7 l -41.4,41.4 c -12.5,12.5 -12.5,32.8 0,45.3 12.5,12.5 32.8,12.5 45.3,0 l 96,-96 z"
|
||||||
id="path1"
|
id="path1"
|
||||||
|
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://behaviours/summoning_recipe.gd" id="1_ek58s"]
|
[ext_resource type="Script" path="res://behaviours/summoning_recipe.gd" id="1_ek58s"]
|
||||||
|
|
||||||
[node name="SummoningRecipe" type="Node2D"]
|
[node name="SummoningRecipe" type="Node"]
|
||||||
script = ExtResource("1_ek58s")
|
script = ExtResource("1_ek58s")
|
||||||
|
|
Loading…
Reference in a new issue