Added a simple loot table and set the base data in rover game. Also fixed a bad assert in item_generator

This commit is contained in:
akshay committed 2022-08-20 15:22:32 -04:00
1 parent 073e2f74d6
commit cbbfe694ed
4 files changed
+44 -12

No files matched your search

+6 -1
View File
@@ -1,9 +1,12 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=11 format=2]
[ext_resource path="res://scenes/rover.tscn" type="PackedScene" id=1]
[ext_resource path="res://item_types/crystal.tres" type="Resource" id=2]
[ext_resource path="res://item_types/gem.tres" type="Resource" id=3]
[ext_resource path="res://assets/rover_level/RoverGame.glb" type="PackedScene" id=4]
[ext_resource path="res://scripts/rover_camera.gd" type="Script" id=5]
[ext_resource path="res://scripts/rover_game.gd" type="Script" id=6]
[ext_resource path="res://item_types/geode.tres" type="Resource" id=7]
[sub_resource type="BoxShape" id=7]
extents = Vector3( 21.7976, 4.38074, 5.34608 )
@@ -23,6 +26,8 @@ extents = Vector3( 100, 1, 400 )
[node name="rover_game" type="Spatial"]
script = ExtResource( 6 )
loot_items = [ ExtResource( 7 ), ExtResource( 2 ), ExtResource( 3 ) ]
loot_weights = [ 60, 25, 15 ]
[node name="RoverGame" parent="." instance=ExtResource( 4 )]
__meta__ = {