Quests, new sounds, explosives, bugfixes, asdfasdf

This commit is contained in:
Regalis
2015-07-29 23:40:26 +03:00
parent 7155f1cef0
commit 5d0a453e23
81 changed files with 1374 additions and 819 deletions
@@ -7,9 +7,9 @@ namespace Subsurface.Items.Components
{
class PowerContainer : Powered
{
//[power/min]
float capacity;
//[power/min]
float charge;
//how fast the battery can be recharged
@@ -21,12 +21,6 @@ namespace Subsurface.Items.Components
float maxOutput;
//public override float Charge
//{
// get { return charge; }
// set { Math.Max(Math.Min(charge = value, capacity), 0.0f); }
//}
[Editable, HasDefaultValue(10.0f, true)]
public float MaxOutPut
{
@@ -46,13 +40,14 @@ namespace Subsurface.Items.Components
}
[HasDefaultValue(10.0f, false)]
[HasDefaultValue(10.0f, false), Editable]
public float Capacity
{
get { return capacity; }
set { capacity = Math.Max(value,1.0f); }
}
[HasDefaultValue(10.0f, false), Editable]
public float RechargeSpeed
{
get { return rechargeSpeed; }
@@ -63,7 +58,7 @@ namespace Subsurface.Items.Components
}
}
[HasDefaultValue(10.0f, false)]
[HasDefaultValue(10.0f, false), Editable]
public float MaxRechargeSpeed
{
get { return maxRechargeSpeed; }