Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
parent
5ffeb55214
commit
0b46d5ee39
839 changed files with 77349 additions and 112660 deletions
|
|
@ -26,7 +26,6 @@ public class Targetable : MonoBehaviour
|
|||
|
||||
void Start()
|
||||
{
|
||||
Ship = GetComponent<Ship>();
|
||||
}
|
||||
|
||||
void Health(float health)
|
||||
|
|
@ -41,9 +40,9 @@ public class Targetable : MonoBehaviour
|
|||
var shield = Ship.GetEquipped(HardpointType.Shield);
|
||||
if (shield != null)
|
||||
{
|
||||
var shieldData = shield.ItemData as Shield;
|
||||
var shieldedDamage = points * saturate(shieldData.Shielding.Evaluate(shield, Ship));
|
||||
Ship.AddHeat(shieldedDamage / shieldData.Efficiency.Evaluate(shield, Ship));
|
||||
var shieldData = shield.ItemData as ShieldData;
|
||||
var shieldedDamage = points * saturate(Ship.Context.Evaluate(shieldData.Shielding, shield, Ship));
|
||||
Ship.AddHeat(shieldedDamage / Ship.Context.Evaluate(shieldData.Efficiency, shield, Ship));
|
||||
Ship.Hull.Durability -= points - shieldedDamage;
|
||||
}
|
||||
else Ship.Hull.Durability -= points;
|
||||
|
|
|
|||
Loading…
Reference in a new issue