Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/locker.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/locker.gd')
-rw-r--r--scripts/locker.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/locker.gd b/scripts/locker.gd
new file mode 100644
index 0000000..b19d23a
--- /dev/null
+++ b/scripts/locker.gd
@@ -0,0 +1,11 @@
+extends Area3D
+
+var contents: int = 0
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ contents = randi_range(0, 20)
+
+func get_contents() -> int:
+ var con = contents
+ contents = 0
+ return con