Merge branch 'godot-4.3' of github.com:HumanoidSandvichDispenser/SupaLidlGame into godot-4.3

godot-4.3
John Montagu, the 4th Earl of Sandvich 2024-01-13 22:30:15 -08:00
commit e7e2a7b999
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
4 changed files with 190 additions and 4 deletions

View File

@ -16,4 +16,10 @@ public partial class ItemMetadata : Resource
[Export(PropertyHint.MultilineText)]
public string Description { get; set; }
[Export]
public int BuyPrice { get; set; }
[Export]
public int SellPrice { get; set; }
}

File diff suppressed because one or more lines are too long

View File

@ -41,6 +41,11 @@ public partial class DashDefensive : AttackState
}
}
if (PursueOnNoLOS && !NPC.HasLineOfSight(bestTarget))
{
return PursueState;
}
if (NPC.CanAttack && NPC.StunTime <= 0)
{
bool isTargetStunned = bestTarget.StunTime > 0;

View File

@ -89,8 +89,9 @@ layout_mode = 2
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" instance=ExtResource("5_mmp18")]
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
layout_mode = 2
_slots = [NodePath("InventorySlot"), NodePath("InventorySlot2"), NodePath("InventorySlot3")]
[node name="Bottom" type="HBoxContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main"]
layout_mode = 1