Reveal book: no scratch holds a departed entity, a destroyed lit gun is refused at the gate, one IsDestroyed rule, departure and allocation pins
Not verified yet at this commit (build and tests run next). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
396c02b08f
commit
c212ec0232
6 changed files with 198 additions and 22 deletions
|
|
@ -386,7 +386,7 @@ public class PropertiesPanel : MonoBehaviour
|
|||
|
||||
private void AddEquippableItemProperties(EquippableItem item, Func<PerformanceStat, float> statValueFunction)
|
||||
{
|
||||
if (item.Durability < .01f)
|
||||
if (item.IsDestroyed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -473,7 +473,7 @@ public class PropertiesPanel : MonoBehaviour
|
|||
|
||||
var gearData = GameManager.ItemManager.GetData(item.EquippableItem);
|
||||
var statusSheet = AddStatSheet();
|
||||
if (item.EquippableItem.Durability < .01f)
|
||||
if (item.EquippableItem.IsDestroyed)
|
||||
statusSheet.AddStat("Durability", () => "Item Destroyed!");
|
||||
else statusSheet.AddStat("Durability", () => $"{(int)(item.EquippableItem.Durability / gearData.Durability * 100)}%");
|
||||
statusSheet.AddStat("Temperature", () => ActionGameManager.PlayerSettings.FormatTemperature(item.Temperature));
|
||||
|
|
|
|||
Loading…
Reference in a new issue