-
-
{{subject.voreStats[stat].toFixed(0)}}
-
-
Status: {{subject.status}}
-
-
-
@@ -137,6 +143,9 @@ a {
flex-basis: 100pt;
margin: 0pt 4pt 0pt;
user-select: none;
+ position: relative;
+ overflow: hidden;
+ background: none;
}
.stat-line {
@@ -213,19 +222,45 @@ a {
color: green;
}
-.statblock[data-active] {
- background: #444;
- border-radius: 4px;
+.statblock-content {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ background: none;
+}
+
+.statblock-shader {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ opacity: 0%;
+ pointer-events: none;
+ z-index: 0;
}
-.statblock[data-active-ally] {
- background: #744;
- border-radius: 4px;
+.statblock[data-eaten] .statblock-shader-eaten {
+ background: green;
+ opacity: 35%;
}
-.statblock[data-active] .stats,
-.statblock[data-active] .vore-stats {
- display: flex;
+.statblock[data-active] .statblock-shader-selected {
+ background: white;
+ opacity: 15%;
+}
+
+.statblock[data-active-ally] .statblock-shader-selected-ally {
+ background: #f88;
+ opacity: 20%;
+}
+
+.statblock[data-dead] .statblock-shader-dead {
+ background: red;
+ opacity: 50%;
+}
+
+.statblock:hover .statblock-shader-hover {
+ background: white;
+ opacity: 10%;
}
.statblock[data-active] .if-not-selected {
diff --git a/src/game/combat/tests.ts b/src/game/combat/tests.ts
index ea46438..a139322 100644
--- a/src/game/combat/tests.ts
+++ b/src/game/combat/tests.ts
@@ -45,7 +45,6 @@ export class StatVigorTest extends RandomTest {
userPercent *= 4
}
- console.log(userPercent, targetPercent, this.f(user.stats[this.stat] * userPercent - target.stats[this.stat] * targetPercent))
return this.f(user.stats[this.stat] * userPercent - target.stats[this.stat] * targetPercent)
}
diff --git a/src/game/entity.ts b/src/game/entity.ts
index e627770..df499d7 100644
--- a/src/game/entity.ts
+++ b/src/game/entity.ts
@@ -79,7 +79,6 @@ export class Creature extends Vore implements Combatant {
this.side = Side.Heroes
this.voreStats = {
get [VoreStat.Bulk] () {
- console.log(containers)
return containers.reduce(
(total: number, container: VoreContainer) => {
return total + container.contents.reduce(
diff --git a/src/game/language.ts b/src/game/language.ts
index b407ff2..a8886c2 100644
--- a/src/game/language.ts
+++ b/src/game/language.ts
@@ -130,7 +130,6 @@ export class DynText {
}
toString (): string {
- console.log(this.parts)
return (this.parts.map(part => part.toString())).join('')
}
}