Enemies balance

This commit is contained in:
Marco 2025-04-23 17:29:00 +02:00
commit 5ada2ea044
6 changed files with 51 additions and 10 deletions

View file

@ -8,11 +8,12 @@ script = ExtResource("1_o3tyw")
BulletScene = ExtResource("1_vsj6i")
BulletSpeed = 80.0
Direction = Vector2(1, 0)
BulletDamage = 8.0
BulletDamage = 12.0
LifeTime = 10.0
DestroyOnCollision = true
Owner = 2
DamageType = 0
RotateSprite = false
Controllable = false
Grazeable = true
GrazeValue = 0.2

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="BulletResource" load_steps=3 format=3 uid="uid://bpc2kyft8q2qq"]
[ext_resource type="PackedScene" uid="uid://bi3f14klscvlw" path="res://Scenes/Weapons/Bullets/enemyBullet_mid_red.tscn" id="1_qhpt3"]
[ext_resource type="Script" uid="uid://dslyrfcej3g2n" path="res://Scripts/Resources/BulletResource.cs" id="2_h8sxi"]
[resource]
script = ExtResource("2_h8sxi")
BulletScene = ExtResource("1_qhpt3")
BulletSpeed = 70.0
Direction = Vector2(1, 0)
BulletDamage = 12.0
LifeTime = 10.0
DestroyOnCollision = true
Owner = 2
DamageType = 0
RotateSprite = false
Controllable = false
Grazeable = true
GrazeValue = 0.2
TimeModifiers = null

View file

@ -7,7 +7,7 @@
[ext_resource type="Resource" uid="uid://bhbufxodybsw4" path="res://Resources/Items/Shield_Pickup.tres" id="4_78cwo"]
[ext_resource type="Resource" uid="uid://dodwpect0ldjf" path="res://Resources/Items/Heart_Pickup.tres" id="5_0pbok"]
[ext_resource type="Resource" uid="uid://clr1gln7nxa1o" path="res://Resources/Items/Power_Pickup.tres" id="6_bun8b"]
[ext_resource type="Resource" uid="uid://cdfmedtgp2rcn" path="res://Resources/Weapons/EnemyWeapon.tres" id="7_xlxdc"]
[ext_resource type="Resource" uid="uid://b54lru8ulinjl" path="res://Resources/Weapons/EnemyWeapon_Big.tres" id="7_u7yd8"]
[sub_resource type="Resource" id="Resource_c8nix"]
script = ExtResource("2_ivudp")
@ -46,7 +46,7 @@ EnemyKey = &"FAIRY_GUARD"
PrefabPath = &"uid://bb32f4p5e671j"
MaxHealth = 10.0
MovementSpeed = 40.0
Weapon = ExtResource("7_xlxdc")
Weapon = ExtResource("7_u7yd8")
LootDrops = Array[ExtResource("2_ivudp")]([SubResource("Resource_c8nix"), SubResource("Resource_gs2l3"), SubResource("Resource_sqnvg"), SubResource("Resource_5tyar"), SubResource("Resource_48xq6")])
MotivationReward = 4.0
PlayerDetectionRange = 90.0

View file

@ -1,7 +1,7 @@
[gd_resource type="Resource" script_class="EnemyResource" load_steps=4 format=3 uid="uid://cfdvg162u65sr"]
[ext_resource type="Script" uid="uid://cq65aed620ijo" path="res://Scripts/Resources/Loot/LootDrop.cs" id="1_f3huq"]
[ext_resource type="Resource" uid="uid://cdfmedtgp2rcn" path="res://Resources/Weapons/EnemyWeapon.tres" id="7_filx8"]
[ext_resource type="Resource" uid="uid://b54lru8ulinjl" path="res://Resources/Weapons/EnemyWeapon_Big.tres" id="2_f3huq"]
[ext_resource type="Script" uid="uid://cd5o0ceb50jki" path="res://Scripts/Resources/EnemyResource.cs" id="8_x8scf"]
[resource]
@ -11,7 +11,7 @@ EnemyKey = &"ROBOT_1"
PrefabPath = &"uid://dky13otbks8cm"
MaxHealth = 16.0
MovementSpeed = 38.0
Weapon = ExtResource("7_filx8")
Weapon = ExtResource("2_f3huq")
LootDrops = Array[ExtResource("1_f3huq")]([])
MotivationReward = 4.0
PlayerDetectionRange = 90.0

View file

@ -7,14 +7,14 @@
script = ExtResource("2_gblpw")
Name = &"Enemy Shotgun"
BulletData = ExtResource("1_gd1fn")
RateOfFire = 0.3
RateOfFire = 1.2
BulletCapacity = 4
ReloadTime = 1.0
ReloadTime = 2.0
AutoReload = true
InfiniteAmmo = true
BulletsPerShot = 2
SpreadAngle = 20.0
RandomSpread = 0.0
ItemKey = null
AmmoKey = null
BulletsPerShot = 5
SpreadAngle = 30.0
RandomSpread = 0.0
_rotationOffset = 0.0

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=3 format=3 uid="uid://b54lru8ulinjl"]
[ext_resource type="Resource" uid="uid://bpc2kyft8q2qq" path="res://Resources/Bullets/simple_enemy_bullet_big.tres" id="1_gww1w"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="2_w71lp"]
[resource]
script = ExtResource("2_w71lp")
Name = null
BulletData = ExtResource("1_gww1w")
RateOfFire = 0.6
BulletCapacity = 4
ReloadTime = 1.0
AutoReload = true
InfiniteAmmo = true
ItemKey = null
AmmoKey = null
BulletsPerShot = 1
SpreadAngle = 0.0
RandomSpread = 0.0
_rotationOffset = 0.0