From 928b989932186505d712691a541ef4dcdd592de8 Mon Sep 17 00:00:00 2001 From: Keanu Date: Sat, 15 Feb 2020 13:26:23 +0100 Subject: [PATCH] Added mod files. --- mod.js | 19 +++++++++++++++++++ package.json | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 mod.js create mode 100644 package.json diff --git a/mod.js b/mod.js new file mode 100644 index 0000000..15cc82f --- /dev/null +++ b/mod.js @@ -0,0 +1,19 @@ +export default class ChargedBalls extends Plugin { + prestart() { + ig.ENTITY.Player.inject({ + /** + * @param {'THROW_NORMAL' | 'THROW_CHARGED' | 'THROW_NORMAL_REV' | 'THROW_CHARGED_REV' | 'THROW_SPECIAL1'} type + */ + startThrowAction(type, data) { + switch(type) { + case 'THROW_NORMAL': + return this.parent('THROW_CHARGED', data); + case 'THROW_NORMAL_REV': + return this.parent('THROW_CHARGED_REV', data); + default: + return this.parent(type, data); + } + } + }); + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..84ddaa6 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "ChargedBalls", + "description": "Replaces normal VRPs with charged VRPs.", + "plugin": "mod.js", + "version": "1.0.0", + "ccmodDependencies": {} +} \ No newline at end of file