Release Healer Man 0.1.25
This commit is contained in:
1 parent
bac0da9300
commit
e7cc588bfc
5 files changed
+27
-5
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "healer-man",
|
||||
"version": "0.1.24",
|
||||
"version": "0.1.25",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "healer-man",
|
||||
"version": "0.1.24",
|
||||
"version": "0.1.25",
|
||||
"dependencies": {
|
||||
"@capacitor/android": "8.4.1",
|
||||
"@capacitor/core": "8.4.1",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "healer-man",
|
||||
"private": true,
|
||||
"version": "0.1.24",
|
||||
"version": "0.1.25",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"versionName": "0.1.24",
|
||||
"versionCode": 1024
|
||||
"versionName": "0.1.25",
|
||||
"versionCode": 1025
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const source = readFileSync(new URL("./MobPopulation.tsx", import.meta.url), "utf8");
|
||||
|
||||
describe("mob nameplate presentation", () => {
|
||||
it("occludes boss names against dungeon geometry", () => {
|
||||
const nameplate = source.match(/\{showLabel && !dead \? \([\s\S]*?<\/Html>\s*\) : null\}/)?.[0] ?? "";
|
||||
|
||||
expect(nameplate).toContain('occlude="raycast"');
|
||||
});
|
||||
|
||||
it("keeps boss names larger and differently colored", () => {
|
||||
const mobStyle = source.match(/const mobLabelStyle: CSSProperties = \{([\s\S]*?)\n\};/)?.[1] ?? "";
|
||||
const bossStyle = source.match(/const bossLabelStyle: CSSProperties = \{([\s\S]*?)\n\};/)?.[1] ?? "";
|
||||
|
||||
expect(mobStyle).toContain('fontSize: "11px"');
|
||||
expect(bossStyle).toContain('color: "#ffe69a"');
|
||||
expect(bossStyle).toContain('fontSize: "13px"');
|
||||
});
|
||||
});
|
||||
@@ -1039,6 +1039,7 @@ function ProxyMob({
|
||||
{showLabel && !dead ? (
|
||||
<Html
|
||||
center
|
||||
occlude="raycast"
|
||||
position={[0, labelHeight, 0]}
|
||||
distanceFactor={13}
|
||||
style={boss ? bossLabelStyle : mobLabelStyle}
|
||||
|
||||
Reference in new issue
Block a user