conforms file names to consistant standard
This commit is contained in:
45
scenes/seller/scn_seller.tscn
Normal file
45
scenes/seller/scn_seller.tscn
Normal file
@@ -0,0 +1,45 @@
|
||||
[gd_scene format=3 uid="uid://c2avjln5vmr0y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cu11aknhwt2qc" path="res://scenes/seller/scr_seller.gd" id="1_diuqd"]
|
||||
[ext_resource type="Script" uid="uid://dkfswql8ui0bt" path="res://scripts/interact_button.gd" id="1_toyr6"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_waypt"]
|
||||
albedo_color = Color(0.909804, 0.113725, 0.113725, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_o3ege"]
|
||||
albedo_color = Color(1, 0.498039, 0.0941176, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_yxwll"]
|
||||
size = Vector3(1, 1.1, 0.7)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_5mxpr"]
|
||||
size = Vector3(0.925, 0.3, 0.4)
|
||||
|
||||
[node name="Shredder" type="StaticBody3D" unique_id=9342411]
|
||||
script = ExtResource("1_diuqd")
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=446453613]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 0)
|
||||
size = Vector3(1, 1.1, 0.7)
|
||||
material = SubResource("StandardMaterial3D_waypt")
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGBox3D" unique_id=1468240847]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.58128, 0)
|
||||
operation = 2
|
||||
size = Vector3(0.8, 0.4, 0.2)
|
||||
material = SubResource("StandardMaterial3D_o3ege")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1315197581]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 0)
|
||||
shape = SubResource("BoxShape3D_yxwll")
|
||||
|
||||
[node name="InteractButton" type="StaticBody3D" parent="." unique_id=194468447]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.08506, 0)
|
||||
collision_layer = 16
|
||||
script = ExtResource("1_toyr6")
|
||||
hover_text = "[center]#Interact# to shred card"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractButton" unique_id=1441281150]
|
||||
shape = SubResource("BoxShape3D_5mxpr")
|
||||
|
||||
[connection signal="button_interacted" from="InteractButton" to="." method="_on_interact_button_button_interacted"]
|
||||
7
scenes/seller/scr_seller.gd
Normal file
7
scenes/seller/scr_seller.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
class_name Shredder extends StaticBody3D
|
||||
|
||||
|
||||
func _on_interact_button_button_interacted(_value: int, callback: Hero) -> void:
|
||||
var cassette: Cassette = callback.inventory.remove_at(callback.inventory_selected_index) as Cassette
|
||||
callback.currency += 5 * (cassette.rarity + 1)
|
||||
callback.decrement_selected()
|
||||
1
scenes/seller/scr_seller.gd.uid
Normal file
1
scenes/seller/scr_seller.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cu11aknhwt2qc
|
||||
Reference in New Issue
Block a user