Finished first EA Version #1
Binary file not shown.
+2
-2
@@ -169,7 +169,7 @@ expand_mode = 2
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/UIHandler/MainUI/HeaderContainer/VBoxContainer/RowWater" unique_id=1355787203]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Water: 100/100"
|
||||
text = "Thirst: 100/100"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
@@ -186,7 +186,7 @@ expand_mode = 2
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/UIHandler/MainUI/HeaderContainer/VBoxContainer/RowHunger" unique_id=1098660752]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Food: 100/100"
|
||||
text = "Hunger: 100/100"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
|
||||
@@ -15,7 +15,11 @@ public class ForNode : ProgramNode
|
||||
{
|
||||
bool isConditionFulfilled = DetermineCondition();
|
||||
amountExecuted++;
|
||||
return isConditionFulfilled ? NodeResult.SUCCESS : NodeResult.CONDITIONFALSE;
|
||||
if (isConditionFulfilled)
|
||||
{
|
||||
amountExecuted = 0;
|
||||
}
|
||||
return isConditionFulfilled ? NodeResult.CONDITIONFALSE : NodeResult.SUCCESS;
|
||||
}
|
||||
|
||||
private bool DetermineCondition()
|
||||
|
||||
@@ -46,8 +46,8 @@ public partial class UIHandler
|
||||
private void DisplaySurvivalStats()
|
||||
{
|
||||
energyLabel.Text = $"Energy: {GameData.survival.energy:0}/{GameData.survival.maxEnergy:0}";
|
||||
waterLabel.Text = $"Water: {GameData.survival.thirst:0}/{GameData.survival.maxThirst:0}";
|
||||
hungerLabel.Text = $"Food: {GameData.survival.hunger:0}/{GameData.survival.maxHunger:0}";
|
||||
waterLabel.Text = $"Thirst: {GameData.survival.thirst:0}/{GameData.survival.maxThirst:0}";
|
||||
hungerLabel.Text = $"Hunger: {GameData.survival.hunger:0}/{GameData.survival.maxHunger:0}";
|
||||
survivalStatus.Text = GameData.survival.currentStatus;
|
||||
survivalStatus.Modulate = GameData.survival.currentStatus.Contains("critical")
|
||||
? UIStyle.GetWarningColor()
|
||||
|
||||
Reference in New Issue
Block a user