Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"Bash(python3:*)",
"Bash(pnpm build:*)",
"Bash(grep:*)",
"Bash(node -e:*)"
"Bash(node -e:*)",
"Bash(pnpm test *)"
]
}
}
28 changes: 28 additions & 0 deletions .devcontainer/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM docker.io/redhat/ubi9:9.7

RUN yum install -y \
unzip \
make \
git \
xz \
golang \
libatomic \
gpg \
&& \
useradd dev && \
mkdir /opt/node && \
mkdir /opt/protoc && \
mkdir /opt/ets && \
chown -R dev:dev /opt/

USER dev

RUN curl -fsSL https://nodejs.org/dist/v24.13.1/node-v24.13.1-linux-x64.tar.xz | tar xJ -C /opt/node && \
cd /opt/protoc && \
curl -fsSL https://github.com/protocolbuffers/protobuf/releases/download/v33.5/protoc-33.5-linux-x86_64.zip -o protoc.zip && \
unzip protoc.zip && rm protoc.zip && \
go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest && \
curl -fsSL https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - && \
curl -fsSL https://github.com/zmwangx/ets/releases/download/v0.2.2/ets_0.2.2_linux_amd64.tar.gz | tar zx -C /opt/ets

ENV PATH=$PATH:/opt/protoc/bin:/opt/ets:/opt/node/node-v24.13.1-linux-x64/bin
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "WASMEGG",
"build": {
"dockerfile": "Containerfile",
"args": {}
},
"remoteUser": "dev",
"remoteEnv": {
"CLAUDE_CONFIG_DIR": "/opt/.claude"
},
"customizations": {

"vscode": {
"extensions": [
"vue.volar",
"pbkit.vscode-pbkit"
]
}
},
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
},
"mounts": [
"source=claude-code-config,target=/opt/.claude,type=volume"
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ dist.frozen
__target__
*.swp
.agent
lib/.claude
lib/.claude
.pnpm-store/
4 changes: 3 additions & 1 deletion lib/artifacts/recommendation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ import {
ArtifactAssemblyStatus,
ArtifactAssemblyStatusNonMissing,
ArtifactSet,
ei,
Farm,
getNumProphecyEggs,
Inventory,
InventoryFamily,
Item,
newItem,
} from '..';
// Separated from other barrel imports due to module level references
// causing circular import crashes when running test frameworks
import { ei } from '../proto';

const debug = import.meta.env.DEV || import.meta.env.VITE_APP_BETA;
import Name = ei.ArtifactSpec.Name;
Expand Down
2 changes: 1 addition & 1 deletion lib/goatcounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ declare global {
}
}

export const goatcounter = window.goatcounter;
export const goatcounter = typeof window === 'undefined' ? undefined : window.goatcounter;
7 changes: 7 additions & 0 deletions lib/missions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,13 @@ export class MissionType {
);
}

maxBoostedCapacity(): number {
return Math.floor(
(this.defaultCapacity + this.params.levelCapacityBump * this.maxLevel) *
(1.5 ) // 10 Zero-G Levels
);
}

boostedQuality(config: ShipsConfig): number {
return (
Math.round((this.params.quality + this.params.levelQualityBump * config.shipLevels[this.shipType]) * 100) / 100
Expand Down
Loading