Here's a MUCH more customizable mod!
From the very start of the .js file:
Code: Select all
/// Cheat settings start
var xpcheat = 1; // 0 = off; 1 = on; turns the EXP multiplier cheat on /off
var xpmultiplier = 10; // Sets the EXP multiplier; only used if xpcheat = 1
var xpmingain = 1; // Sets the minimum exp gained from an enemy; only used if xpcheat = 1
var creditcheat = 1; // 0 = off; 1 = on; turns the credits gained multiplier cheat on /off
var creditmultiplier = 10; // Sets the credits ganed multiplier; only used if creditcheat = 1
var ignorespcheat = 1; // 0 = off; 1 = on; turns the ignore SP cheat on /off
var overheatelim = 1; // 0 = off; 1 = on; turns the Overheat Elimination cheat on /off
var invincible = 1; // 0 = off; 1 = on; turns the invincibility cheat on /off
var spcheat = 1; // 0 = off; 1 = on; turns the SP does not decrease cheat on /off
var consumablecheat = 1; // 0 = off; 1 = on; turns the consumables do not decrease cheat on /off
var tradecheat = 1; // 0 = off; 1 = on; turns the trade does not consume items cheat on /off
var enemydropcheat = 1; // 0 = off; 1 = on; turns the 100% drop rate from enemies cheat on /off
var plantdropcheat = 1; // 0 = off; 1 = on; turns the 100% drop rate from plants cheat on /off
// For normal EXP gain, with a 5 XP minimum gain per enemy killed, set: xpcheat = 1; xpmultiplier = 1; xpmingain = 5
/// Cheat settings end
Big thanks go to 2767mr on the Crosscode Modding Discord channel for helping me figure out a syntax problem I was having while trying to code that!
Oh, and this one had a LOT more actual coding done compared to the previous mods, so it will be quite difficult, comparatively, to port this one to future versions if you don't know a bit about how to code (though to be fair, I don't know much about coding myself, lol).
Enjoy!
*edit- Was going through the thread, and spotted the mod I made a while back for a minimum xp gained, while normal exp if it was above that threshold, added it in for more customizability.
*edit2- Just clarifying a few things:
This mod is for CrossCode v1.1.0-3.
The min EXP gain mod is inserted literally one step before EXP is added and reported, which is several steps after the EXP multiplier is inserted. As an example of what this means:
Assume the normal EXP you'd gain is 1.
You have the multiplier set to 5.
You have min EXP gain set to 10.
You gain 10 EXP, because after the x5 multiplier you have less than 10 EXP, and the min gain mod kicks in.
You have the multiplier set to 10.
You have min EXP gain set to 5.
You gain 10 EXP, because after the x10 multiplier you have more than 5 EXP, so the min EXP gain mod doesn't kick in.
Just wanted to be sure no one thought that the min EXP gained would be multiplied if you used both mods at the same time, they work together fine.
*edit3- Huh... OK, So the attached file apparently spontaneously changed from a .7z to a .rar, and added a password to itself, then edited the password into my post... Weird.
File itself is unmodified... Not sure why a mod would step in and recompress it and add a password though...
*edit4- The modded file goes into:
\CrossCode\assets\js\
*edit5- "spcheat" actually affects CP, not SP (cheat works as intended, just named wrong). Updated .js located here:
viewtopic.php?p=98674#p98674
Password: frf