Skip to content

Commit c83594d

Browse files
committed
Fix for Fully charged shields not losing Strength when Power is lost.
1 parent d7d98ed commit c83594d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ This mod allows you to place shield generators. They are expensive and power hun
1010
*Initial Release
1111

1212
01.00.01
13-
*Fix for Shields blocking not just from the edge.
13+
*Fix for Shields blocking not just from the edge.
14+
15+
01.00.02
16+
*Fix for Fully charged shields not losing Strength when Power is lost.

Source/ED-Shields/Shields/Building_Shield.cs

+9-2
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,16 @@ public void UpdateShieldStatus()
348348
break;
349349

350350
case (enumShieldStatus.ActiveSustaining):
351-
if (this.FieldIntegrity_Current < this.m_FieldIntegrity_Max)
351+
if (!_PowerAvalable)
352352
{
353-
this.CurrentStatus = enumShieldStatus.ActiveCharging;
353+
this.CurrentStatus = enumShieldStatus.ActiveDischarging;
354+
}
355+
else
356+
{
357+
if (this.FieldIntegrity_Current < this.m_FieldIntegrity_Max)
358+
{
359+
this.CurrentStatus = enumShieldStatus.ActiveCharging;
360+
}
354361
}
355362
break;
356363
}

0 commit comments

Comments
 (0)