A fast, interactive Svelte-based calculator for managing game items, calculating profits, and planning your earnings strategy. Perfect for players who need to track item values and plan their farming routes.
Clone the repository:
git clone <repository-url>
cd oaklands-calculator
Install dependencies:
npm install
Start the development server:
npm run dev
The app will be available at http://localhost:5173 (or the next available port).
npm run build
Preview the production build locally:
npm run preview
Navigate to the Item Database section to:
Use the Profit Calculator to:
Calculate Items to Profit
Find Target Profit Items
src/
├── lib/
│ ├── data/
│ │ └── items.ts # Item definitions and values
│ └── index.ts
├── routes/
│ ├── +layout.svelte # Main layout
│ ├── +page.svelte # Home page with feature cards
│ ├── items/
│ │ └── +page.svelte # Item database view
│ └── profit-calculator/
│ └── +page.svelte # Profit calculator view
└── app.html
Items are stored as TypeScript interfaces with their values:
// Fruits
{ name: "Apple", value: 100 }
// Flowers
{ name: "Rose", hex: "#d01823", value: 100 }
// Processed multiplier: 4x the base value
npm run dev - Start dev server with hot reloadnpm run build - Build for productionnpm run preview - Preview production buildnpm run check - Type check and lint with svelte-checknpm run check:watch - Watch mode for type checkingWorks in all modern browsers that support ES2020. PWA features require HTTPS in production.
Want to add more items or improve the calculator? Contributions are welcome!
Steps to contribute:
npm run devEdit src/lib/data/items.ts to add new fruits, flowers, or mushrooms. Follow the existing format and maintain the TypeScript interfaces.
MIT