let line = ["The Luxray leaps towards you and smacks you with his heavy paw.",newline];
let line = "The Luxray leaps towards you and smacks you with his heavy paw.";
let choice = Math.random();
if (choice < 0.4) {
player.changeStamina(-25);
line.push("You're knocked sideways, tossed into the wall! The impact dazes you for a moment.")
line += "You're knocked sideways, tossed into the wall! The impact dazes you for a moment.";
} else if (choice < 0.75) {
player.changeStamina(-15);
let distance = Math.round(Math.random()*2+1);
attacker.flags.distance += distance;
line += "You tumble backwards, tossed between the lion's legs and thrown backward " + (distance == 1 ? "a foot" : "two feet") + ".";
} else {
player.changeStamina(-15);
attacker.flags.distance -= 1;
line += "He bats you from behind, sending you tumbling a foot forward.";
}
return [line];
},
requirements: [
function(attacker, defender) {
return attacker.flags.state == "chase";
}
],
priority: 1,
weight: function() { return 1; }
};
}
function kuroPounce(attacker) {
return {
attackPlayer: function(defender) {
let result = statHealthCheck(attacker, defender, "dex");
if (result) {
attacker.flags.state = "paws";
return ["A scrape of claws on concrete precedes the looming shadow of the lion. You turn and gasp in surprise, trying to dive out of the way as he comes hurtling down towards you - but it's too late. Kuro lands hard on his forepaws, pinning you to the cold, damp pavement and smothering your body in those weighty toes."];
} else {
return ["You hear the Luxray's claws scrape on the pavement as he pounces. It's just enough of a warning for you to dive out of the way. Heavy paws thump down on the ground, narrowly missing your body as you roll and get back to your feet."];
}
},
requirements: [
function(attacker, defender) {
return attacker.flags.state == "chase";
}
],
priority: 1,
weight: function() { return 1; }
};
}
function kuroSit(attacker) {
return {
attackPlayer: function(defender) {
let success = statHealthCheck(attacker, defender, "dex");
if (success) {
attacker.flags.state = "sit";
return ["You gasp as the Luxray saunters over you, his regal body blotting out the light from above. It seems like he's just...walking past? You slow and stop, gazing upward as his black-and-yellow body walks by - chest, then belly, then his half-erect shaft, and then...<i>WHUMP</i>. His hind legs bend as his hips slam down on your body, pinning you up against his heavy ass. A hot, musk-tinged pucker grinds over your snout as he lets out a satisfied <i>purr.</i>"];
} else {
return ["You gasp as the Luxray saunters right onto you - tongue lolling from his parted jaws, eyes briefly making contact with yours - before his head becomes obscured by his regal chest and belly. For a brief moment, you think he's just letting you go...and then you realize what's about to happen, lunging to the side a heartbeat before his hips slam down on the ground. A delighted purr is cut short as he looks to the side and sees you stumbling to your feet; the Luxray rises back up and snarls. He really does want you..."];
}
},
requirements: [
function(attacker, defender) {
return attacker.flags.state == "chase";
}
}
}
],
priority: 1,
weight: function() { return 1; }
};
}
function kuroLick(attacker) {
return {
attackPlayer: function(defender) {
defender.changeStamina(-25);
return ["The big cat's hot, pink tongue drags over your body as he savors your little squirmy body."];