vdfs n idk what else
This commit is contained in:
1 parent
e27f939601
commit
2e9292d4ed
15 files changed
+130
-11
No files matched your search
@@ -205,14 +205,22 @@ public class ShipControls : MonoBehaviour {
|
||||
|
||||
audio.PlayNoise();
|
||||
|
||||
// convert dmg to % to hide internals
|
||||
float dmg = (amt / powerUnit.ShieldMax) * 100f;
|
||||
timing.Message($"{dmg:0} Damage");
|
||||
|
||||
bool destroyed = powerUnit.ShieldReduce(amt);
|
||||
if (destroyed) {
|
||||
Debug.Log($"Ddddestroyed by {src}");
|
||||
// play big noise!
|
||||
Respawn();
|
||||
}
|
||||
}
|
||||
|
||||
public void OnTrackLimits() {
|
||||
timing.Message("Track Limits");
|
||||
Respawn();
|
||||
}
|
||||
|
||||
void Deploy(Output output) {
|
||||
bool deployed = powerUnit.Deploy(output);
|
||||
if (deployed) audio.PlayNoise();
|
||||
|
||||
Reference in new issue
Block a user