Преглед на файлове

Player oral/anal prefs better respected now

tags/v0.2.8
Fen Dweller преди 7 години
родител
ревизия
fd72019909
променени са 2 файла, в които са добавени 19 реда и са изтрити 21 реда
  1. +17
    -20
      alley.js
  2. +2
    -1
      world.js

+ 17
- 20
alley.js Целия файл

@@ -13,7 +13,6 @@ function KuroLuxray() {


this.attacks.push(kuroLick(this)); this.attacks.push(kuroLick(this));
this.attacks.push(kuroKnead(this)); this.attacks.push(kuroKnead(this));
//this.attacks.push(kuroSlideSit(this));
this.attacks.push(kuroOralVore(this)); this.attacks.push(kuroOralVore(this));


this.attacks.push(kuroAnalSmother(this)); this.attacks.push(kuroAnalSmother(this));
@@ -107,6 +106,9 @@ function kuroPounce(attacker) {
requirements: [ requirements: [
function(attacker, defender) { function(attacker, defender) {
return attacker.flags.state == "chase"; return attacker.flags.state == "chase";
},
function(attacker, defender) {
return defender.prefs.prey && defender.prefs.vore.oral > 0;
} }
], ],
priority: 1, priority: 1,
@@ -130,6 +132,9 @@ function kuroSit(attacker) {
requirements: [ requirements: [
function(attacker, defender) { function(attacker, defender) {
return attacker.flags.state == "chase"; return attacker.flags.state == "chase";
},
function(attacker, defender) {
return defender.prefs.prey && defender.prefs.vore.anal > 0;
} }
], ],
priority: 1, priority: 1,
@@ -187,7 +192,7 @@ function kuroOralVore(attacker) {
} }
], ],
priority: 1, priority: 1,
weight: function(attacker, defender) { return 2 - 1.5 * defender.staminaPercentage(); }
weight: function(attacker, defender) { return 2 - 1 * defender.staminaPercentage(); }
}; };
} }


@@ -207,11 +212,10 @@ function kuroOralSuckle(attacker) {
} }
], ],
priority: 1, priority: 1,
weight: function(attacker, defender) { return 1; }
weight: function(attacker, defender) { return defender.staminaPercentage() * 1.25; }
}; };
} }



function kuroOralSwallow(attacker) { function kuroOralSwallow(attacker) {
return { return {
attackPlayer: function(defender) { attackPlayer: function(defender) {
@@ -268,7 +272,7 @@ function kuroAnalVore(attacker) {
} }
], ],
priority: 1, priority: 1,
weight: function(attacker, defender) { return 1; }
weight: function(attacker, defender) { return 2 - defender.staminaPercentage(); }
}; };
} }


@@ -581,8 +585,12 @@ function kuroPlayerStomachStruggleUp(attacker) {
requirements: [ requirements: [
function(attacker, defender) { function(attacker, defender) {
return defender.flags.state == "stomach"; return defender.flags.state == "stomach";
}, function(attacker, defender) {
},
function(attacker, defender) {
return attacker.health > 0 && attacker.stamina > 0; return attacker.health > 0 && attacker.stamina > 0;
},
function(attacker, defender) {
return attacker.prefs.vore.oral > 0;
} }
], ],
priority: 1, priority: 1,
@@ -615,23 +623,12 @@ function kuroPlayerStomachStruggleDown(attacker) {
return defender.flags.state == "stomach"; return defender.flags.state == "stomach";
}, function(attacker, defender) { }, function(attacker, defender) {
return attacker.health > 0 && attacker.stamina > 0; return attacker.health > 0 && attacker.stamina > 0;
},
function(attacker, defender) {
return attacker.prefs.vore.anal > 0;
} }
], ],
priority: 1, priority: 1,
weight: function(attacker, defender) { return 1; } weight: function(attacker, defender) { return 1; }
}; };
} }


function template(attacker) {
return {
attackPlayer: function(defender) {

},
requirements: [

],
priority: 1,
weight: function(attacker, defender) { return 1; }
};
}

+ 2
- 1
world.js Целия файл

@@ -150,7 +150,8 @@ let locationsSrc = [
], ],
"hooks": [ "hooks": [
function() { function() {
startCombat(new KuroLuxray());
if (player.prefs.prey && (player.prefs.vore.oral > 0 || player.prefs.vore.anal > 0))
startCombat(new KuroLuxray());
} }
] ]
}, },


Loading…
Отказ
Запис