Add different type of inventory item (armor)
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
using GameJamDungeon;
|
||||
using Godot;
|
||||
|
||||
public partial class Weapon : Node3D
|
||||
public partial class Weapon : InventoryItem
|
||||
{
|
||||
public Weapon()
|
||||
{
|
||||
_inventoryInfo = WeaponInfo.Default;
|
||||
}
|
||||
|
||||
[Export]
|
||||
public WeaponInfo InventoryInfo;
|
||||
private WeaponInfo _inventoryInfo { get; set; }
|
||||
|
||||
public override InventoryItemInfo InventoryInfo { get => _inventoryInfo; set => _inventoryInfo = value as WeaponInfo; }
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
[node name="CommonSword" type="Node3D"]
|
||||
script = ExtResource("1_sr3bh")
|
||||
InventoryInfo = ExtResource("2_krjts")
|
||||
_inventoryInfo = ExtResource("2_krjts")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
billboard = 2
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
[node name="RareSword" type="Node3D"]
|
||||
script = ExtResource("1_f8v7v")
|
||||
InventoryInfo = ExtResource("2_6nmyd")
|
||||
_inventoryInfo = ExtResource("2_6nmyd")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
billboard = 2
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
[node name="UncommonSword" type="Node3D"]
|
||||
script = ExtResource("1_3o4dy")
|
||||
InventoryInfo = ExtResource("2_ga52m")
|
||||
_inventoryInfo = ExtResource("2_ga52m")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
billboard = 2
|
||||
|
||||
Reference in New Issue
Block a user