Recipe prep

This commit is contained in:
2025-05-20 15:19:43 -05:00
parent 8311d7c68f
commit 7b92b11696
17 changed files with 40 additions and 33 deletions

View File

@@ -28,6 +28,7 @@ UI="*res://scenes/Singletons/UI.tscn"
VN="*res://scripts/Singleton/VN.gd"
LOAD="*res://scenes/Singletons/Load.tscn"
EVENT="*res://scripts/Singleton/Event.gd"
RECIPE="*res://scenes/Singletons/Recipe.tscn"
[display]

View File

@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://1l0tymk8cfxu"]
[ext_resource type="Script" uid="uid://j87s6jrx8unn" path="res://scripts/Singleton/Recipe.gd" id="1_o4nv4"]
[ext_resource type="Script" uid="uid://dipvg4uwjv6p2" path="res://scripts/Cooking/Recipe.gd" id="2_f5akq"]
[node name="RecipeSystem" type="Node"]
script = ExtResource("1_o4nv4")
metadata/_custom_type_script = "uid://j87s6jrx8unn"
[node name="Ash-Baked Sweet Potato" type="Node" parent="."]
script = ExtResource("2_f5akq")
recipeName = "Ash-Baked Sweet Potato"
metadata/_custom_type_script = "uid://dipvg4uwjv6p2"

View File

@@ -0,0 +1,8 @@
# Material for Barrel
newmtl BarrelTexture
Ka 1.000 1.000 1.000
Kd 1.000 1.000 1.000
Ks 0.000 0.000 0.000
d 1.0
illum 1
map_Kd barrel.png

View File

@@ -1,7 +0,0 @@
class_name CookingGame
const VerticalSlice = preload("res://scripts/Cooking/Recipe/VerticalSlice.gd");
var recipe:CookingRecipe = null;
func _init(recipe:CookingRecipe) -> void:
self.recipe = recipe;

View File

@@ -1 +0,0 @@
uid://nsqcafdni4vc

View File

@@ -0,0 +1,8 @@
@tool
class_name Recipe extends Node
@export var recipeName:String = ""
@export var ingredients:Array[RecipeIngredient] = []
func test():
print("test")

View File

@@ -0,0 +1 @@
uid://dipvg4uwjv6p2

View File

@@ -1,8 +0,0 @@
class_name CookingRecipe
const ItemStack = preload("res://scripts/Item/ItemStack.gd")
func _init() -> void:
pass
func getIngredients() -> Array[ItemStack]:
return []

View File

@@ -1 +0,0 @@
uid://bqnancnrbmk5n

View File

@@ -1,9 +0,0 @@
class_name VerticalSlice extends "res://scripts/Cooking/Recipe/CookingRecipe.gd"
func _init() -> void:
super._init();
func getIngredients() -> Array[ItemStack]:
return [
ItemStack.new(ITEM.ITEM_POTION, 1)
];

View File

@@ -1 +0,0 @@
uid://c2x1lbdtbtd00

View File

@@ -0,0 +1,4 @@
class_name RecipeIngredient extends Resource
@export var thing:int = 0
@export var count:int = 1

View File

@@ -0,0 +1 @@
uid://cy01crjsvohfc

View File

@@ -6,4 +6,4 @@ var battle:Battle = null;
func startBattle(battle:Battle) -> void:
print("start battle");
self.battle = battle;
self.battle = battle;

View File

@@ -1,5 +1 @@
extends Node
const CookingGame = preload("res://scripts/Cooking/CookingGame.gd");
var game:CookingGame = null;
extends Node

View File

@@ -0,0 +1 @@
class_name RecipeSystem extends Node

View File

@@ -0,0 +1 @@
uid://j87s6jrx8unn