From 5c43909ba5dce28d6994f1b049b18773380128df Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 9 Mar 2018 10:46:07 -0500 Subject: [PATCH] Added an anthro template --- vore.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vore.js b/vore.js index c51f028..af76a38 100644 --- a/vore.js +++ b/vore.js @@ -1,3 +1,7 @@ +function pick(list) { + return list[Math.floor(Math.random()*list.length)]; +} + function Creature(name = "Creature") { this.name = name; this.health = 100; @@ -12,6 +16,14 @@ function Player(name = "Player") { this.fullness = 100; this.maxFullness = 200; } + +function Anthro() { + let species = pick(["dog","cat","lizard","deer","wolf","fox"]); + + Creature.call(this, name); +} +// vore stuff here + function Container(name = "stomach") { this.name = name; this.contents = [];