@@ -208,3 +228,62 @@ function WasteContainer(name) {
function Bowels() {
function Bowels() {
WasteContainer.call(this, "Bowels");
WasteContainer.call(this, "Bowels");
}
}
// PLAYER PREY
function plead(predator) {
return {
name: "Plead",
desc: "Ask very, very nicely for the predator to let you go. More effective if you haven't hurt your predator.",
struggle: function(player) {
let escape = Math.random() < predator.health / predator.maxHealth;
if (escape) {
return {
"escape": escape,
"lines": ["You plead for the " + predator.description() + " to let you free, and they begrudingly agree, horking you up and leaving you shivering on the ground"]
};
} else {
return {
"escape": escape,
"lines": ["You plead with the " + predator.description() + " to let you go, but they refuse."]
};
}
}
};
}
function struggle(predator) {
return {
name: "Struggle",
desc: "Try to squirm free. More effective if you've hurt your predator.",
struggle: function(player) {
let escape = Math.random() > predator.health / predator.maxHealth;
if (escape) {
return {
"escape": escape,
"lines": ["You struggle and squirm, forcing the " + predator.description() + " to hork you up. They groan and stumble away, exhausted by your efforts."]
};
} else {
return {
"escape": escape,
"lines": ["You squirm and writhe within the " + predator.description() + " to no avail."]
};
}
}
};
}
function rub(predator) {
return {
name: "Rub",
desc: "Rub rub rub",
struggle: function(player) {
return {
"escape": false,
"lines": ["You rub the walls of your predator's belly. At least the " + predator.description() + " is getting something out of this."]