Split code to make it easier to edit :)

This commit is contained in:
Lordmau5 2020-05-21 01:19:08 +02:00
parent 42d99b249a
commit 43aad0d985
5 changed files with 3026 additions and 3030 deletions

View File

@ -1,2 +1,5 @@
# Kiwami-2-Model-Replacer # Kiwami-2-Model-Replacer
Any config modifications are to be done in the `config.js` file.
To build the new `character_character_data.bin` file just run `npm start` afterwards.

50
config.js Normal file
View File

@ -0,0 +1,50 @@
// Which mode the program should run in?
//
// 0 = Everyone is one model (singleModel)
// 1 = Everyone has a random model from a list (randomModels)
// 2 = Everyone is a completely random model
const mode = 0;
// Should we try to make sure models are replaced
// with another one of the same "type"? (2nd byte)
const sameType = false;
// Singular model to replace when mode is 0
//
// Example: [0x71, 0x08] for Kiryu
const singleModel = [0x71, 0x08];
// List of models to choose randomly from when mode is 1
const randomModels = [
[0x71, 0x08],
[0x72, 0x08],
];
// List of base models to exclude from modifications
// Other models can still be replaced *with* that model
//
// Example: If Kiryu's base model is found it will never be changed
// That means Kiryu can't be set to Daigo, but Daigo can still be set to Kiryu
const excludedModels = [
[0xb6, 0x08],
[0xb3, 0x08],
];
// Blacklist to prevent models from appearing
// Can also act as a whitelist so *only* those models will appear
const blacklist = {
isWhitelist: false,
models: [
[0x58, 0x08],
[0x1e, 0x0a],
],
};
module.exports = {
mode,
sameType,
singleModel,
randomModels,
excludedModels,
blacklist,
};

3083
index.js

File diff suppressed because it is too large Load Diff

2917
models.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "Lordmau5", "author": "Lordmau5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {