aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/glass_fill.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-13 19:07:31 +0200
committertpart <tpart120@proton.me>2024-09-13 19:07:31 +0200
commit5e95797d7cff71c261f0c97c3c1fe96882b89650 (patch)
treec2b95f7aa5b89c893854b961ca4763b9befc75cb /client/map/items/glass_fill.gd
parent08f94a71a66999c95a4382d08978ee78fb786132 (diff)
downloadhurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar
hurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar.bz2
hurrycurry-5e95797d7cff71c261f0c97c3c1fe96882b89650.tar.zst
Re-implement glass fill; Update steaks because godot keeps changing it back
Diffstat (limited to 'client/map/items/glass_fill.gd')
-rw-r--r--client/map/items/glass_fill.gd8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/map/items/glass_fill.gd b/client/map/items/glass_fill.gd
index 8b1e18f0..dc03f784 100644
--- a/client/map/items/glass_fill.gd
+++ b/client/map/items/glass_fill.gd
@@ -14,14 +14,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
class_name GlassFill
-extends Glass
+extends Item
var fill: MeshInstance3D = load("res://map/items/glass_fill.tscn").instantiate()
-func _init(owned_by_: Node3D):
+func _init(owned_by_: Node3D, c: Color):
super(owned_by_)
- add_child(fill)
-
-func set_color(c: Color):
var mat: BaseMaterial3D = fill.get_active_material(0)
mat.albedo_color = c
+ add_child(fill)