Initial commit
This commit is contained in:
parent
e3827dd067
commit
0e50ed8b55
3
cfg/config.json
Normal file
3
cfg/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Enabled": true
|
||||
}
|
3
package.js
Normal file
3
package.js
Normal file
@ -0,0 +1,3 @@
|
||||
const { Mod } = require("./src/Inconsistencies.js");
|
||||
|
||||
module.exports.mod = new Mod();
|
7
package.json
Normal file
7
package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "WeaponInconsistencies",
|
||||
"author": "Limbo",
|
||||
"version": "1.0.0",
|
||||
"license": "CC-BY-NC-4.0",
|
||||
"main": "package.js"
|
||||
}
|
35
src/Inconsistencies.js
Normal file
35
src/Inconsistencies.js
Normal file
@ -0,0 +1,35 @@
|
||||
//By Limbo#1337
|
||||
|
||||
"use strict";
|
||||
|
||||
class Mod {
|
||||
constructor() {
|
||||
this.mod = "WeaponInconsistencies";
|
||||
|
||||
Logger.info(`Loading: ${this.mod}`);
|
||||
ModLoader.onLoad[this.mod] = this.load.bind(this);
|
||||
}
|
||||
|
||||
load() {
|
||||
const config = require("../cfg/config.json");
|
||||
const items = DatabaseServer.tables.templates.items;
|
||||
if(config.Enabled) {
|
||||
//URX 8 - Size Left 2 -> 1
|
||||
items["5d123102d7ad1a004e475fe5"]._props.ExtraSizeLeft = 1;
|
||||
//URX 10.75 - Size Left 3 -> 2
|
||||
items["5d122e7bd7ad1a07102d6d7f"]._props.ExtraSizeLeft = 2;
|
||||
//M700 AICS Polymer Stock - Size Down 1 -> 0
|
||||
items["5d25d0ac8abbc3054f3e61f7"]._props.ExtraSizeDown = 0;
|
||||
//UMP 45 - Base Height 2 -> 1
|
||||
items["5fc3e272f8b6a877a729eac5"]._props.Height = 1;
|
||||
//UMP 45 25Rd Mag - Size Down 0 -> 1
|
||||
items["5fc3e466187fea44d52eda90"]._props.ExtraSizeDown = 1;
|
||||
//FAL 10Rd Mag - Size Down 1 -> 0
|
||||
items["5b7bef1e5acfc43d82528402"]._props.ExtraSizeDown = 0;
|
||||
//M700 Wyatt 10Rd Mag - Size Down 0 -> 1
|
||||
items["5bfeaa0f0db834001b734927"]._props.ExtraSizeDown = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.Mod = Mod;
|
Loading…
x
Reference in New Issue
Block a user