From 97a18ef35a4f4808f44d407836167c664a35a462 Mon Sep 17 00:00:00 2001 From: nokoe Date: Mon, 24 Jun 2024 20:29:59 +0200 Subject: flour --- client/map/items/flour.gd | 21 +++++++++++++++++++++ client/map/items/flour.res | Bin 0 -> 2775 bytes client/map/items/flour.tscn | 10 ++++++++++ client/map/items/flour_food_processor.gd | 22 ++++++++++++++++++++++ client/map/items/processing.tscn | 2 +- client/map/items/tomat_food_processor.gd | 22 ---------------------- client/map/items/tomato_food_processor.gd | 22 ++++++++++++++++++++++ 7 files changed, 76 insertions(+), 23 deletions(-) create mode 100644 client/map/items/flour.gd create mode 100644 client/map/items/flour.res create mode 100644 client/map/items/flour.tscn create mode 100644 client/map/items/flour_food_processor.gd delete mode 100644 client/map/items/tomat_food_processor.gd create mode 100644 client/map/items/tomato_food_processor.gd (limited to 'client/map/items') diff --git a/client/map/items/flour.gd b/client/map/items/flour.gd new file mode 100644 index 00000000..1cb52ee8 --- /dev/null +++ b/client/map/items/flour.gd @@ -0,0 +1,21 @@ +# Undercooked - a game about cooking +# Copyright 2024 nokoe +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +class_name Flour +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/flour.tscn").instantiate()) diff --git a/client/map/items/flour.res b/client/map/items/flour.res new file mode 100644 index 00000000..19f2db82 Binary files /dev/null and b/client/map/items/flour.res differ diff --git a/client/map/items/flour.tscn b/client/map/items/flour.tscn new file mode 100644 index 00000000..c283eae5 --- /dev/null +++ b/client/map/items/flour.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://dgo8cknr1o6ml"] + +[ext_resource type="ArrayMesh" uid="uid://b76c6o88lkei2" path="res://map/items/flour.res" id="1_55ndm"] + +[node name="Flour" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0) +mesh = ExtResource("1_55ndm") +skeleton = NodePath("") diff --git a/client/map/items/flour_food_processor.gd b/client/map/items/flour_food_processor.gd new file mode 100644 index 00000000..24ad976c --- /dev/null +++ b/client/map/items/flour_food_processor.gd @@ -0,0 +1,22 @@ +# Undercooked - a game about cooking +# Copyright 2024 nokoe +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +class_name FlourFoodProcessor +extends FoodProcessor + +func _init(owned_by_: Node3D): + super(owned_by_) + processing.color = Color(.9, .9, .9) + base.add_child(load("res://map/items/flour.tscn").instantiate()) diff --git a/client/map/items/processing.tscn b/client/map/items/processing.tscn index 4904eb04..f8deb6be 100644 --- a/client/map/items/processing.tscn +++ b/client/map/items/processing.tscn @@ -17,7 +17,7 @@ mesh = SubResource("SphereMesh_baneh") emission_shape = 6 emission_ring_axis = Vector3(0, 1, 0) emission_ring_height = 0.2 -emission_ring_radius = 0.05 +emission_ring_radius = 0.1 emission_ring_inner_radius = 0.0 direction = Vector3(0, 1, 0) spread = 180.0 diff --git a/client/map/items/tomat_food_processor.gd b/client/map/items/tomat_food_processor.gd deleted file mode 100644 index 4003e246..00000000 --- a/client/map/items/tomat_food_processor.gd +++ /dev/null @@ -1,22 +0,0 @@ -# Undercooked - a game about cooking -# Copyright 2024 nokoe -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, version 3 of the License only. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -class_name TomatoFoodProcessor -extends FoodProcessor - -func _init(owned_by_: Node3D): - super(owned_by_) - processing.color = Color(1., 0., 0.) - base.add_child(load("res://map/items/tomato.tscn").instantiate()) diff --git a/client/map/items/tomato_food_processor.gd b/client/map/items/tomato_food_processor.gd new file mode 100644 index 00000000..4003e246 --- /dev/null +++ b/client/map/items/tomato_food_processor.gd @@ -0,0 +1,22 @@ +# Undercooked - a game about cooking +# Copyright 2024 nokoe +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +class_name TomatoFoodProcessor +extends FoodProcessor + +func _init(owned_by_: Node3D): + super(owned_by_) + processing.color = Color(1., 0., 0.) + base.add_child(load("res://map/items/tomato.tscn").instantiate()) -- cgit v1.2.3-70-g09d2