Tiered weapons

This commit is contained in:
Marco 2025-05-01 11:10:36 +02:00
commit f3a701d3f9
42 changed files with 700 additions and 16 deletions

View file

@ -7,10 +7,11 @@
[resource]
script = ExtResource("3_cjfxs")
ItemName = &"Ice Shotgun"
ShortName = &"IC-27"
ShortName = &"IC-25"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN"
Item = 9
Tier = 0
Price = 0
WeaponData = ExtResource("2_3le6e")
Amount = 1
@ -21,4 +22,4 @@ UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("2_4ibag")
DropScenePath = &"res://Scenes/Items/Ice_Shotgun_Pickup.tscn"
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://dv0cdlx8d6evm"]
[ext_resource type="Texture2D" uid="uid://byi12qwcnrir8" path="res://Sprites/Items/Ice_Shotgun_Sawed.png" id="1_hq5ny"]
[ext_resource type="Resource" uid="uid://i5cq21er10ew" path="res://Resources/Weapons/Ice_Shotgun_Sawed_T0.tres" id="2_vcy22"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_n0omu"]
[resource]
script = ExtResource("3_n0omu")
ItemName = &"Sawed Ice Shotgun"
ShortName = &"IC-25"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN_SAWED"
Item = 9
Tier = 0
Price = 0
WeaponData = ExtResource("2_vcy22")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_hq5ny")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://btk4kojtepwv"]
[ext_resource type="Texture2D" uid="uid://7r50e2264cnr" path="res://Sprites/Items/Ice_Shotgun_Sawed_T1.png" id="1_qo2ul"]
[ext_resource type="Resource" uid="uid://cea6xftma1sd3" path="res://Resources/Weapons/Ice_Shotgun_Sawed_T1.tres" id="2_d8yv1"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_eu2qy"]
[resource]
script = ExtResource("3_eu2qy")
ItemName = &"Improved Sawed Ice Shotgun"
ShortName = &"IC-27-S"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN_SAWED_T1"
Item = 9
Tier = 1
Price = 0
WeaponData = ExtResource("2_d8yv1")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_qo2ul")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://c57od7cpn5kwf"]
[ext_resource type="Texture2D" uid="uid://rr71xb2q8x22" path="res://Sprites/Items/Ice_Shotgun_Sawed_T2.png" id="1_l7ik6"]
[ext_resource type="Resource" uid="uid://bcpa1vhlp7ki4" path="res://Resources/Weapons/Ice_Shotgun_Sawed_T2.tres" id="2_4l2hi"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_4syqt"]
[resource]
script = ExtResource("3_4syqt")
ItemName = &"Advanced Sawed Ice Shotgun"
ShortName = &"IC-27-S"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN_SAWED_T2"
Item = 9
Tier = 2
Price = 0
WeaponData = ExtResource("2_4l2hi")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_l7ik6")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://c01jixi7b2s7v"]
[ext_resource type="Texture2D" uid="uid://dceyytbfpbywp" path="res://Sprites/Items/Ice_Shotgun_T1.png" id="1_wkd5q"]
[ext_resource type="Resource" uid="uid://ipwe382oy6nq" path="res://Resources/Weapons/Ice_Shotgun_T1.tres" id="2_um3fl"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_0fud6"]
[resource]
script = ExtResource("3_0fud6")
ItemName = &"Improved Ice Shotgun"
ShortName = &"IC-27"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN_T1"
Item = 9
Tier = 1
Price = 0
WeaponData = ExtResource("2_um3fl")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_wkd5q")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://bhllj7r3oxipf"]
[ext_resource type="Texture2D" uid="uid://bcv8wyhfsxenc" path="res://Sprites/Items/Ice_Shotgun_T2.png" id="1_cr14o"]
[ext_resource type="Resource" uid="uid://2ra03y2ohoeh" path="res://Resources/Weapons/Ice_Shotgun_T2.tres" id="2_o24o8"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_pabk4"]
[resource]
script = ExtResource("3_pabk4")
ItemName = &"Advanced Ice Shotgun"
ShortName = &"IC-27"
ItemDescription = &"Shoots ice pellets in a wide spread"
ItemKey = &"ICE_SHOTGUN_T2"
Item = 9
Tier = 2
Price = 0
WeaponData = ExtResource("2_o24o8")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_cr14o")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -1,18 +1,19 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://bgcgeg187vg1h"]
[ext_resource type="Texture2D" uid="uid://bxe747rnr5xt7" path="res://Sprites/Items/Ice_Repeater.png" id="2_3abss"]
[ext_resource type="Resource" uid="uid://yuc0v7gojgep" path="res://Resources/Weapons/IcicleRepeater.tres" id="3_5vsuk"]
[ext_resource type="Resource" uid="uid://ccyl111fa1j2k" path="res://Resources/Weapons/IcicleRepeater_t0.tres" id="2_d42pt"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="4_k6in2"]
[resource]
script = ExtResource("4_k6in2")
ItemName = &"Icicle Repeater"
ShortName = &"IC-18"
ShortName = &"IC-16"
ItemDescription = &"Shoots ice pellets at a high rate"
ItemKey = &"ICICLE_REPEATER"
ItemKey = &"ICICLE_REPEATER_T0"
Item = 9
Tier = 0
Price = 0
WeaponData = ExtResource("3_5vsuk")
WeaponData = ExtResource("2_d42pt")
Amount = 1
Max = 1
PickupIfMaxed = false
@ -21,4 +22,4 @@ UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("2_3abss")
DropScenePath = &"res://Scenes/Items/Icicle_Repeater.tscn"
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://dwwbyyy3fo4bt"]
[ext_resource type="Texture2D" uid="uid://b3fwkh5r4aiga" path="res://Sprites/Items/Ice_Repeater_Advanced.png" id="1_mj87v"]
[ext_resource type="Resource" uid="uid://b8eam846atr6y" path="res://Resources/Weapons/IcicleRepeater_T2.tres" id="2_mj87v"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_aikyr"]
[resource]
script = ExtResource("3_aikyr")
ItemName = &"Advanced Icicle Repeater"
ShortName = &"IC-20"
ItemDescription = &"Shoots ice pellets at a high rate"
ItemKey = &"ICICLE_REPEATER_T2"
Item = 9
Tier = 2
Price = 0
WeaponData = ExtResource("2_mj87v")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_mj87v")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://cajqlnyvlmybe"]
[ext_resource type="Texture2D" uid="uid://ctqg1b02r5f08" path="res://Sprites/Items/Ice_Repeater_Improved.png" id="1_cked8"]
[ext_resource type="Resource" uid="uid://yuc0v7gojgep" path="res://Resources/Weapons/IcicleRepeater.tres" id="2_540a7"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_1c8ng"]
[resource]
script = ExtResource("3_1c8ng")
ItemName = &"Improved Icicle Repeater"
ShortName = &"IC-18"
ItemDescription = &"Shoots ice pellets at a high rate"
ItemKey = &"ICICLE_REPEATER"
Item = 9
Tier = 1
Price = 0
WeaponData = ExtResource("2_540a7")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 1
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_cked8")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"

View file

@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://i5cq21er10ew"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_g5stw"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_d1u0r"]
[resource]
script = ExtResource("2_d1u0r")
Name = &"Sawed Ice Shotgun"
BulletData = ExtResource("1_g5stw")
Priority = 0
RateOfFire = 0.5
BulletCapacity = 4
ReloadTime = 0.8
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN_SAWED"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 4
SpreadAngle = 30.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://cea6xftma1sd3"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_1fs3a"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_q6qa7"]
[resource]
script = ExtResource("2_q6qa7")
Name = &"Ice Shotgun"
BulletData = ExtResource("1_1fs3a")
Priority = 0
RateOfFire = 0.4
BulletCapacity = 4
ReloadTime = 0.8
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN_SAWED_T1"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 4
SpreadAngle = 25.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://bcpa1vhlp7ki4"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_yvljr"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_uksy0"]
[resource]
script = ExtResource("2_uksy0")
Name = &"Ice Shotgun"
BulletData = ExtResource("1_yvljr")
Priority = 0
RateOfFire = 0.2
BulletCapacity = 6
ReloadTime = 0.7
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN_SAWED_T2"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 4
SpreadAngle = 25.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://ipwe382oy6nq"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_fi2vm"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_6gv3a"]
[resource]
script = ExtResource("2_6gv3a")
Name = &"Ice Shotgun"
BulletData = ExtResource("1_fi2vm")
Priority = 0
RateOfFire = 0.4
BulletCapacity = 4
ReloadTime = 0.8
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN_T1"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 3
SpreadAngle = 15.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://2ra03y2ohoeh"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_ej60i"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_2n571"]
[resource]
script = ExtResource("2_2n571")
Name = &"Ice Shotgun"
BulletData = ExtResource("1_ej60i")
Priority = 0
RateOfFire = 0.2
BulletCapacity = 6
ReloadTime = 0.7
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN_T2"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 3
SpreadAngle = 15.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -7,14 +7,15 @@
script = ExtResource("2_utbbo")
Name = &"Ice Shotgun"
BulletData = ExtResource("1_m44wx")
RateOfFire = 0.1
Priority = 0
RateOfFire = 0.5
BulletCapacity = 4
ReloadTime = 0.8
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICE_SHOTGUN"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 3
SpreadAngle = 15.0
RandomSpread = 0.0
ItemKey = &"ICE_SHOTGUN"
AmmoKey = &"ICE_AMMO"
_rotationOffset = 0.0

View file

@ -9,8 +9,8 @@
script = ExtResource("2_m8dps")
Name = &"Icicle Gun"
BulletData = ExtResource("1_85ef1")
RateOfFire = 0.2
BulletCapacity = 4
RateOfFire = 0.3
BulletCapacity = 5
ReloadTime = 0.6
AutoReload = true
InfiniteAmmo = true

View file

@ -0,0 +1,24 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=5 format=3 uid="uid://b8eam846atr6y"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_2nbel"]
[ext_resource type="AudioStream" uid="uid://jsv3yjluv1au" path="res://SFX/Weapons/Reload_01.wav" id="2_nbwhc"]
[ext_resource type="AudioStream" uid="uid://cjg8r7bthkfsy" path="res://SFX/Laser_shoot 11.wav" id="3_aroxb"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="4_a5x7h"]
[resource]
script = ExtResource("4_a5x7h")
Name = &"Icicle Repeater"
BulletData = ExtResource("1_2nbel")
RateOfFire = 0.1
BulletCapacity = 8
ReloadTime = 0.5
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICICLE_REPEATER_T2"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 2
SpreadAngle = 5.0
RandomSpread = 0.0
_rotationOffset = 0.0
ReloadSound = ExtResource("2_nbwhc")
ShootSound = ExtResource("3_aroxb")

View file

@ -0,0 +1,24 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=5 format=3 uid="uid://ccyl111fa1j2k"]
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_2567x"]
[ext_resource type="AudioStream" uid="uid://jsv3yjluv1au" path="res://SFX/Weapons/Reload_01.wav" id="2_2sfo4"]
[ext_resource type="AudioStream" uid="uid://cjg8r7bthkfsy" path="res://SFX/Laser_shoot 11.wav" id="3_3qbca"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="4_ai75q"]
[resource]
script = ExtResource("4_ai75q")
Name = &"Bad Icicle Repeater"
BulletData = ExtResource("1_2567x")
RateOfFire = 0.2
BulletCapacity = 6
ReloadTime = 0.5
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICICLE_REPEATER_T0"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 1
SpreadAngle = 0.0
RandomSpread = 0.0
_rotationOffset = 0.0
ReloadSound = ExtResource("2_2sfo4")
ShootSound = ExtResource("3_3qbca")