vdfs n idk what else

This commit is contained in:
ntr committed 2023-10-02 19:18:36 +11:00
1 parent e27f939601
commit 2e9292d4ed
15 files changed
+130 -11

No files matched your search

+9 -1
View File
@@ -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();