aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/redHPD.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/redHPD.ts')
-rw-r--r--webAO/dom/redHPD.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/dom/redHPD.ts b/webAO/dom/redHPD.ts
new file mode 100644
index 0000000..7b47c23
--- /dev/null
+++ b/webAO/dom/redHPD.ts
@@ -0,0 +1,9 @@
+import { client } from "../client";
+
+/**
+ * Decrement defense health point.
+ */
+export function redHPD() {
+ client.sendHP(1, client.hp[0] - 1);
+}
+window.redHPD = redHPD; \ No newline at end of file