Um, could you give a more detailed walkthrough of how to implement this in the game? I would really like for enemies to have more ejstock. Also, could you describe more what it actually does?
I wish. I can't really get it to work properly. Basically, my idea was to use this._ejaculationCount (which I assume is just a count on how many times that particular enemy has cum) at the beginning of the battle to increase the volume and stock of that particular enemy. It doesn't appear to carry over, however. This could depend on how enemies are spawned and respawned, in that every time you defeat an enemy it's effectively "despawned" and if another enemy is spawned with the same name that's technically an entirely new enemy. That's my current theory anyway, and that's why it doesn't work unless you lose over and over again.
In order to make this function properly I'd have to create a separate variable that ties into the data on a higher level, and not on a temporary variable that only seems to stick around until that enemy is defeated. I've yet to get it to work properly, however.
If you just want to permanently increase how much stock/volume each enemy has, however, that's not super hard to do. Step by step;
1. Open up RemtairyEnemy.js
2. Go to row ~140 and find the function Game_Enemy.prototype.onBattleStart. Add a call to another function at the end, so it should look like this:
JavaScript:
Game_Enemy.prototype.onBattleStart = function() {
Remtairy.Enemy.Game_Enemy_onBattleStart.call(this);
this.recoverAll();
this.recoverAll();
this.setupSexToys();
this.hornyPrefixEffect();
this.angryPrefixEffect();
this.updateEjaculation();
};
3. Now create a new function anywhere in the file (I prefer to add it next to setupEjaculation around row ~250, but anywhere is fine):
JavaScript:
Game_Enemy.prototype.updateEjaculation = function() {
let min = this.enemy().dataEjaculationAmt;
let range = this.enemy().dataEjaculationRange;
let stock = this.enemy().dataEjaculationStock;
this._ejaculationVolume = Math.max(Math.randomInt(range) + min + YOUR_VOLUME_VALUE_HERE, 10);
this._ejaculationStock = stock + YOUR_STOCK_VALUE_HERE;
};
Simply add the value for volume (total ml of cum in the tank) and stock (# of times they can cum) that you prefer. It'll be added on top of whatever their default values are.
edit: Fixed a minor typo in the second function that made the game crash. Sorry.
edit2: Scratch all that. I misunderstood the code. We can use the setupEjaculation function instead, it appears to be called at the start of each combat. I'm gonna work out the best way to edit it and update.
edit3: Okay, finally got it working I believe. I ended up simply editing the existing setupEjaculation function found on row ~250 in RemtairyEnemy, and nothing else. Further comments in the code below.
JavaScript:
Game_Enemy.prototype.setupEjaculation = function() {
this._ejaculationCount = 0;
let ejStock = Math.floor(this.enemy().dataEjaculationStock);
if(this.enemy().dataEjaculationStock > 1 && this.enemy().dataEjaculationStock < 2) {
if(Math.random() < this.enemy().dataEjaculationStock - 1)
ejStock++;
}
else if(this.enemy().dataEjaculationStock > 2 && this.enemy().dataEjaculationStock < 3) {
if(Math.random() < this.enemy().dataEjaculationStock - 2)
ejStock++;
}
// adding these statements, you can do your own math if you want
if(Karryn.slutLvl > 50)
ejStock++;
if(Karryn.slutLvl > 100)
ejStock++;
if(Karryn.slutLvl > 200)
ejStock++;
this._ejaculationStock = ejStock;
let min = this.enemy().dataEjaculationAmt;
let range = this.enemy().dataEjaculationRange;
this._ejaculationVolume = Math.max(Math.randomInt(range) + min, 0) * ejStock; //also adding ejStock as a multiplier to the amount here in the end, so they don't run out of juice in the tank
};
As you can see I decided to modify the existing ejStock value by simply adding Karryn's slutlevel to it (in three tiers, each tier adding another stock), as well as tying the ejStock value to the volume (so they don't run out of juice, so to speak).
edit4: As mentioned below, there's separate code somewhere that punts the enemies if they run out of energy. I'm currently trying to locate that piece of code. Until then, only those enemies with enough energy will remain, even if they have more cum to donate to Karryn's cause.