Skip to content

Commit

Permalink
Added mod files.
Browse files Browse the repository at this point in the history
  • Loading branch information
keanuplayz authored Feb 15, 2020
1 parent 78bf3dd commit 928b989
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions mod.js
Original file line number Diff line number Diff line change
@@ -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);
}
}
});
}
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "ChargedBalls",
"description": "Replaces normal VRPs with charged VRPs.",
"plugin": "mod.js",
"version": "1.0.0",
"ccmodDependencies": {}
}

0 comments on commit 928b989

Please sign in to comment.