e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -6,7 +6,7 @@
|
|||
function mateTargetFor(t, world, maxDist = 520) {
|
||||
if (!t || !world) return null;
|
||||
const current = currentBehaviorTarget(t) || t.target;
|
||||
const ok = o => o && o !== t && !o.dead && !world.areParentChild?.(t, o) && !!t.isZunchiSlave === !!o.isZunchiSlave && !o.sleepDisease && !o.fightDisease && (o.reproductionTimer || 0) <= 10 && (o.fightTimer || 0) <= 0.04 && (o.birthRitualTimer || 0) <= 0.04;
|
||||
const ok = o => o && o !== t && !o.dead && !t.juvenile && !o.juvenile && !world.areParentChild?.(t, o) && !!t.isZunchiSlave === !!o.isZunchiSlave && !o.sleepDisease && !o.fightDisease && (o.reproductionTimer || 0) <= 10 && (o.fightTimer || 0) <= 0.04 && (o.birthRitualTimer || 0) <= 0.04;
|
||||
const championOk = o => ok(o) && !!t.isTarinaiChampion && !!o.isTarinaiChampion;
|
||||
if (championOk(current) && dist(t, current) <= maxDist + 260) return current;
|
||||
if (t.isTarinaiChampion) {
|
||||
|
|
@ -61,6 +61,7 @@ function socialFightMateWeights(t, other, world, options = {}) {
|
|||
: (loveMochi ? ((t.hunger || 0) < 90 && (other.hunger || 0) < 92 && (t.energy || 0) > 18 && (other.energy || 0) > 18) : ((t.hunger || 0) < 55 && (other.hunger || 0) < 60 && (t.energy || 0) > 44 && (other.energy || 0) > 44));
|
||||
const lonelyBond = championPair || (loveMochi ? ((t.loneliness || 0) > 4 || (other.loneliness || 0) > 4 || (t.affection || 0) > 0 || (other.affection || 0) > 0) : ((t.loneliness || 0) > 24 || (other.loneliness || 0) > 24));
|
||||
const mateEligible = sameStatus
|
||||
&& !t.juvenile && !other.juvenile
|
||||
&& timerOk
|
||||
&& mateDistanceOk
|
||||
&& !world.areParentChild?.(t, other)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue