From 5a38748d55eed46ecc6e2927246b7c45565af9a0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 19 Aug 2024 17:55:10 +0200 Subject: strawberry shake glass --- client/map/item_factory.gd | 1 + client/map/items/glass_items.gd | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'client') diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 876ffb29..c56ab407 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -75,6 +75,7 @@ static func produce(name: String, owned_by: Node3D) -> Item: "glass": return Glass.new(owned_by) "water-glass": return GlassItems.WaterG.new(owned_by) + "strawberry-shake-glass": return GlassItems.StrawberryShakeG.new(owned_by) "plate": return Plate.new(owned_by) "bread-slice-plate": return PlateItems.BreadSliceP.new(owned_by) diff --git a/client/map/items/glass_items.gd b/client/map/items/glass_items.gd index 29d87c7a..d154579a 100644 --- a/client/map/items/glass_items.gd +++ b/client/map/items/glass_items.gd @@ -1,6 +1,27 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 tpart +# Copyright 2024 metamuffin +# +# 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 GlassItems class WaterG extends GlassFill: func _init(owned_by_: Node3D): super(owned_by_) set_color(Color(.5, .6, .8)) + +class StrawberryShakeG extends GlassFill: + func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color8(250, 140, 180)) -- cgit v1.2.3-70-g09d2