Compare commits
2
Commits
fe0a134b8a
...
4c4d52ef3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c4d52ef3d | ||
|
|
84c148f1ab |
@@ -97,11 +97,6 @@ enum AttackState {
|
|||||||
|
|
||||||
@export_category("Respawn")
|
@export_category("Respawn")
|
||||||
|
|
||||||
@export_category("Drops")
|
|
||||||
|
|
||||||
## Table defining what pickups can drop on death (by chance).
|
|
||||||
@export var drop_table: PickupDropTable
|
|
||||||
|
|
||||||
|
|
||||||
@export_category("Respawn")
|
@export_category("Respawn")
|
||||||
|
|
||||||
@@ -176,21 +171,12 @@ func _ready() -> void:
|
|||||||
attack_hitbox.collision_mask = PLAYER_HURTBOX_MASK
|
attack_hitbox.collision_mask = PLAYER_HURTBOX_MASK
|
||||||
attack_hitbox.monitoring = true
|
attack_hitbox.monitoring = true
|
||||||
|
|
||||||
if drop_table == null:
|
|
||||||
var default_table = load("res://enemies/walker/walker_drop.tres")
|
|
||||||
if default_table != null:
|
|
||||||
drop_table = default_table
|
|
||||||
|
|
||||||
visibility_notifier.screen_entered.connect(_wake_up)
|
|
||||||
if default_table != null:
|
|
||||||
drop_table = default_table
|
|
||||||
|
|
||||||
visibility_notifier.screen_entered.connect(_wake_up)
|
|
||||||
|
|
||||||
if drop_table == null:
|
if drop_table == null:
|
||||||
var default_table := load("res://enemies/walker/walker_drop.tres")
|
var default_table := load("res://enemies/walker/walker_drop.tres")
|
||||||
if default_table != null:
|
if default_table != null:
|
||||||
drop_table = default_table as PickupDropTable
|
drop_table = default_table
|
||||||
|
|
||||||
|
visibility_notifier.screen_entered.connect(_wake_up)
|
||||||
|
|
||||||
_update_facing()
|
_update_facing()
|
||||||
_reset_attack_hitbox_position()
|
_reset_attack_hitbox_position()
|
||||||
|
|||||||
Reference in new issue
Block a user