diff --git a/combat.js b/combat.js index 015998d..cd24424 100644 --- a/combat.js +++ b/combat.js @@ -31,3 +31,14 @@ function flankAttack(attacker) { } }; } + +function devourPlayer(attacker) { + return { + name: "Devours YOU!", + desc: "You won't see this", + attackPlayer: function(defender) { + changeMode("eaten"); + return "The voracious " + attacker.description() + " pins you down and devours you in seconds."; + } + } +} diff --git a/feast.css b/feast.css index 630aae9..7d856da 100644 --- a/feast.css +++ b/feast.css @@ -56,6 +56,13 @@ button { user-select: none; } +.eaten-button { + width: 200px; + height: 50px; + font-size: 18px; + user-select: none; +} + #combat-desc { width: 200px; height: 400px; @@ -77,6 +84,10 @@ button { list-style-type: none; } +#eaten { + list-style-type: none; +} + #log { background: #222; width: 100%; diff --git a/feast.html b/feast.html index 05397d6..79601f4 100644 --- a/feast.html +++ b/feast.html @@ -1,4 +1,4 @@ - +0.0.2 @@ -23,7 +23,7 @@
- Welcome to Feast v0.0.1 + Welcome to Feast v0.0.2
Time: to get a watch
@@ -115,6 +115,12 @@
+
+ +
+
+