Skip to content

Commit

Permalink
-Updated game libraries
Browse files Browse the repository at this point in the history
-Updated SEModAPI libraries
-Fixed light color (had them backwards)
-Improved radiation damage performance (applies once every 1000ms)
  • Loading branch information
chessmaster42 committed Jul 27, 2014
1 parent ee8f640 commit 5333751
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 6 deletions.
Binary file modified Libraries/SEModAPI.dll
Binary file not shown.
Binary file modified Libraries/SEModAPIExtensions.dll
Binary file not shown.
Binary file modified Libraries/SEModAPIInternal.dll
Binary file not shown.
Binary file modified Libraries/Sandbox.Common.XmlSerializers.dll
Binary file not shown.
Binary file modified Libraries/Sandbox.Common.dll
Binary file not shown.
Binary file modified Libraries/VRage.Common.dll
Binary file not shown.
Binary file modified Libraries/VRage.Math.dll
Binary file not shown.
2 changes: 0 additions & 2 deletions WarpDrivePlugin/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public Core()

m_lastFullScan = DateTime.Now;
m_lastCleanUp = DateTime.Now;

Console.WriteLine("WarpDrivePlugin '" + Id.ToString() + "' constructed!");
}

#endregion
Expand Down
4 changes: 2 additions & 2 deletions WarpDrivePlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
[assembly: AssemblyVersion("0.2.1.0")]
[assembly: AssemblyFileVersion("0.2.1.0")]
12 changes: 10 additions & 2 deletions WarpDrivePlugin/WarpEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class WarpEngine : MultiblockStructure, IDisposable
private DateTime m_lastUpdate;
private DateTime m_warpRequest;
private DateTime m_warpStart;
private DateTime m_lastRadiationDamage;
private TimeSpan m_timeSinceLastUpdate;
private TimeSpan m_timeSinceWarpRequest;
private TimeSpan m_timeSinceWarpStart;
Expand All @@ -55,6 +56,7 @@ public WarpEngine(CubeGridEntity parent)

m_lastPowerCheck = DateTime.Now;
m_lastUpdate = DateTime.Now;
m_lastRadiationDamage = DateTime.Now;

m_isStartingWarp = false;
m_isWarping = false;
Expand Down Expand Up @@ -405,7 +407,7 @@ private void UpdateLights()

foreach (ReflectorLightEntity light in Lights)
{
light.Color = new Color(66, 108, 198);
light.Color = new Color(198, 108, 66);
}
m_lightMode = true;
}
Expand All @@ -419,7 +421,7 @@ private void UpdateLights()

foreach (ReflectorLightEntity light in Lights)
{
light.Color = new Color(198, 108, 66);
light.Color = new Color(66, 108, 198);
}
m_lightMode = false;
}
Expand All @@ -435,6 +437,12 @@ private void DoRadiationDamage()
{
try
{
TimeSpan timeSinceRadiationDamage = DateTime.Now - m_lastRadiationDamage;
if (timeSinceRadiationDamage.TotalMilliseconds < 1000)
return;

m_lastRadiationDamage = DateTime.Now;

List<CharacterEntity> characters = SectorObjectManager.Instance.GetTypedInternalData<CharacterEntity>();

Vector3I beaconBlockPos = Beacon.Min;
Expand Down

0 comments on commit 5333751

Please sign in to comment.