From 2c35b6b1d31b03b3d96e619039a0b554a50be7e3 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 25 Apr 2018 11:33:05 -0400 Subject: [PATCH] Started Kuro --- alley.js | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 alley.js diff --git a/alley.js b/alley.js new file mode 100644 index 0000000..4d48f8c --- /dev/null +++ b/alley.js @@ -0,0 +1,53 @@ +public KuroLuxray() { + Creature.call(this, "Kuro", 20, 40, 20); + + this.hasName = true; + + this.description = function() { return "Kuro"; }; + + this.attacks.push(kuroPounce(this)); + this.attacks.push(kuroSit(this)); + this.attacks.push(kuroBat(this)); + + this.attacks.push(kuroLick(this)); + this.attacks.push(kuroKnead(this)); + this.attacks.push(kuroSlideSit(this)); + this.attacks.push(kuroOralVore(this)); + + this.attacks.push(kuroSmother(this)); + this.attacks.push(kuroAnalVore(this)); + + this.attacks.push(kuroSwallow(this)); + + this.attacks.push(kuroAnalPull(this)); + this.attacks.push(kuroAnalSqueeze(this)); + this.attacks.push(kuroAnalRest(this)); + + this.attacks.push(kuroDigest(this)); + + this.flags.state = "chase"; + + this.flags.distance = 6; + + this.playerAttacks = []; + + this.playerAttacks.push(pass); + + this.prefs.prey = false; +} + +function kuroBat(attacker) { + return { + attackPlayer: function(defender) { + let line = ["The Luxray leaps towards you and smacks you with his heavy paw.",newline]; + 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.") + } else if (choice < 0.75) { + player.changeStamina(-15); + } + } + } +}