浏览代码

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(kuroKnead(this));
//this.attacks.push(kuroSlideSit(this));
this.attacks.push(kuroOralVore(this));

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


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

@@ -581,8 +585,12 @@ function kuroPlayerStomachStruggleUp(attacker) {
requirements: [
function(attacker, defender) {
return defender.flags.state == "stomach";
}, function(attacker, defender) {
},
function(attacker, defender) {
return attacker.health > 0 && attacker.stamina > 0;
},
function(attacker, defender) {
return attacker.prefs.vore.oral > 0;
}
],
priority: 1,
@@ -615,23 +623,12 @@ function kuroPlayerStomachStruggleDown(attacker) {
return defender.flags.state == "stomach";
}, function(attacker, defender) {
return attacker.health > 0 && attacker.stamina > 0;
},
function(attacker, defender) {
return attacker.prefs.vore.anal > 0;
}
],
priority: 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": [
function() {
startCombat(new KuroLuxray());
if (player.prefs.prey && (player.prefs.vore.oral > 0 || player.prefs.vore.anal > 0))
startCombat(new KuroLuxray());
}
]
},


正在加载...
取消
保存