A* pathfinding, autopilot, WIP radar rendering, proper location names, character skills shown in menus, got rid of PreviewCharacter, mantis

This commit is contained in:
Regalis
2015-07-14 21:09:00 +03:00
parent a2636133ca
commit 44b9a63c94
51 changed files with 1971 additions and 940 deletions
+8 -9
View File
@@ -112,6 +112,11 @@ namespace Subsurface
get { return (Level.Loaded == null) ? Vector2.Zero : -Level.Loaded.Position; }
}
public Vector2 Speed
{
get { return speed; }
}
public string FilePath
{
get { return filePath; }
@@ -477,10 +482,10 @@ namespace Subsurface
float waterPercentage = waterVolume / volume;
float neutralPercentage = 0.1f;
float neutralPercentage = 0.07f;
float buoyancy = neutralPercentage-waterPercentage;
buoyancy *= mass * 10.0f;
buoyancy *= mass * 30.0f;
return new Vector2(0.0f, buoyancy);
}
@@ -825,13 +830,7 @@ namespace Subsurface
//hullBodies.Add(hullBody);
MapEntity.LinkAll();
foreach (Item item in Item.itemList)
{
foreach (ItemComponent ic in item.components)
{
ic.OnMapLoaded();
}
}
ID = int.MaxValue-10;