From d99a619e26f38c729d74d8dc585e8ce13236ffb7 Mon Sep 17 00:00:00 2001 From: Caleb Date: Thu, 8 Sep 2022 00:51:31 -0400 Subject: Removed all window functions from client --- webAO/dom/addHPD.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webAO/dom/addHPD.ts (limited to 'webAO/dom/addHPD.ts') diff --git a/webAO/dom/addHPD.ts b/webAO/dom/addHPD.ts new file mode 100644 index 0000000..12d1c07 --- /dev/null +++ b/webAO/dom/addHPD.ts @@ -0,0 +1,9 @@ +import { client } from "../client"; + +/** + * Increment defense health point. + */ +export function addHPD() { + client.sendHP(1, client.hp[0] + 1); +} +window.addHPD = addHPD; \ No newline at end of file -- cgit