Skip to content

Instantly share code, notes, and snippets.

@Enzemo
Enzemo / pls.js
Last active September 12, 2025 14:38
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
@Enzemo
Enzemo / monsters.js
Last active September 12, 2025 14:03
// Global debug mode flag
window.COLLECTION_HELPER_DEBUG = {
allMonstersMissing: false,
includeUnobtainable: false
};
// Debug function to toggle all monsters as missing
window.toggleDebugMode = function(includeUnobtainable = false) {
window.COLLECTION_HELPER_DEBUG.allMonstersMissing = !window.COLLECTION_HELPER_DEBUG.allMonstersMissing;
if (includeUnobtainable !== undefined) {
@Enzemo
Enzemo / testo2.js
Last active September 11, 2025 15:29
// Simple test to verify script is loaded
console.log('=== Collection Helper Script Loaded ===');
console.log('Current time:', new Date().toISOString());
// Add a global debug function that can be called from console
window.debugGameState = function() {
console.clear();
console.log('=== DEBUG GAME STATE ===');
// 1. Check global objects
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
/**
* Build an index of owned equipment keyed by base name + variant type.
* Uses each instance's `stat` (hp/ap/ad) when available for accurate variant detection,
* then falls back to metadata-based inference.
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
const BUTTON_ID = 'missing-monsters-button';
const MODAL_TITLE = 'Bestiary Helper';
// Hardcoded unobtainable monsters list
(function() {
if (typeof api === 'undefined' || !api || !api.ui || !api.ui.components) {
console.error('[Missing Monsters] BestiaryModAPI not available');
return;
}
const BUTTON_ID = 'missing-monsters-button';
const MODAL_TITLE = 'Bestiary Helper';
// Hardcoded unobtainable monsters list