Fix labels
This commit is contained in:
@@ -125,7 +125,7 @@ namespace GameJamDungeon
|
||||
})
|
||||
.Handle((in PlayerLogic.Output.Animations.Attack output) =>
|
||||
{
|
||||
var weaponInfo = (WeaponInfo)GameRepo.EquippedWeapon.Info;
|
||||
var weaponInfo = GameRepo.EquippedWeapon.WeaponInfo;
|
||||
var attackSpeed = (float)weaponInfo.AttackSpeed;
|
||||
AnimationPlayer.SetSpeedScale(attackSpeed);
|
||||
AnimationPlayer.Play("attack");
|
||||
@@ -216,7 +216,7 @@ namespace GameJamDungeon
|
||||
AnimationPlayer.AnimationFinished -= OnAnimationFinished;
|
||||
}
|
||||
|
||||
private void OnEquippedWeaponChanged(Weapon info) => Hitbox.Damage = ((WeaponInfo)info.Info).Damage;
|
||||
private void OnEquippedWeaponChanged(Weapon info) => Hitbox.Damage = info.WeaponInfo.Damage;
|
||||
|
||||
private void OnHPChanged(double newHP)
|
||||
{
|
||||
|
||||
@@ -157,8 +157,8 @@ mesh = SubResource("CapsuleMesh_dmans")
|
||||
[node name="CollisionDetector" type="Area3D" parent="CollisionShape3D"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.937567, 0)
|
||||
collision_layer = 192
|
||||
collision_mask = 128
|
||||
collision_layer = 196
|
||||
collision_mask = 132
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CollisionShape3D/CollisionDetector"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0479561, 0.982638, -0.04021)
|
||||
|
||||
Reference in New Issue
Block a user