diff options
Diffstat (limited to 'scripts/entities/actors')
| -rw-r--r-- | scripts/entities/actors/Actor.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/entities/actors/Actor.cs b/scripts/entities/actors/Actor.cs index dc8ba53..1717cfa 100644 --- a/scripts/entities/actors/Actor.cs +++ b/scripts/entities/actors/Actor.cs @@ -156,7 +156,7 @@ public partial class Actor : Entity base.SetDefinition(definition); this.definition = definition; - ZIndex = 1; + Type = definition.Type; MaxHp = definition.Hp; Hp = definition.Hp; @@ -207,7 +207,7 @@ public partial class Actor : Entity Texture = definition.deathTexture; BlocksMovement = false; - ZIndex = 0; + Type = EntityType.CORPSE; DisplayName= $"Restos mortais de {DisplayName}"; Map_Data.UnregisterBlockingEntity(this); EmitSignal(SignalName.Died); |
