This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const states = { | |
IDLE: 'IDLE', | |
GENERATING_MANIFEST: 'GENERATING_MANIFEST', | |
ISSUEING_MANIFEST: 'ISSUEING_MANIFEST', | |
MANIFEST_ISSUED: 'MANIFEST_ISSUED', | |
FAILED_DURING_SETUP: 'FAILED_DURING_SETUP', | |
POWERING_ON_DEVICE: 'POWERING_ON_DEVICE', | |
IPXE_BOOT_IN_PROGRESS: 'IPXE_BOOT_IN_PROGRESS', | |
BOOTSTRAPPING: 'BOOTSTRAPPING', | |
OS_FETCHING: 'OS_FETCHING', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "128", | |
"sprite": "https://www.makio.it/pokemon/src/pokemon/home/10251.webp", | |
"name": { | |
"english": "Tauros" | |
}, | |
"type": [ | |
"Fighting" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
- on nuz specified | |
- prompt if re randomisation should be enabled | |
- if toggled on, ask for vanilla Rom instead of randomized | |
(Checksum?) | |
- If no UPR previously defined | |
- request UPR executable path | |
- if UPR path is invalid, warn | |
- request UPR executable path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as features from './featureList' | |
const featureDescriptions = { | |
[features.AUTO_BADGE_TRACKING]: 'Automatic badge tracking', | |
[features.AUTO_PARTY_TRACKING]: 'Automatic tracking of Pokémon in your party', | |
[features.AUTO_PARTY_TRACKING_FIELD_SHINY]: 'Automatic party tracking - Shiny detection', | |
[features.AUTO_PARTY_TRACKING_FIELD_LEVEL_MET]: 'Automatic party tracking - Level at which the Pokémon was caught', | |
[features.AUTO_PARTY_TRACKING_FIELD_TYPES]: 'Automatic party tracking - Detecting the Pokémon types from the ROM instead of a generic Pokédex ', | |
[features.AUTO_PARTY_TRACKING_FIELD_FRIENDSHIP]: 'Automatic party tracking - Pokémon friendship', | |
[features.AUTO_PARTY_TRACKING_FIELD_ABILITY]: 'Automatic party tracking - Pokémon ability', |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====== | |
001 - Bulbasaur (Stage: 1) | |
====== | |
Galar Dex: Foreign | |
Base Stats: 45.49.49.65.65.45 (BST: 318) | |
EV Yield: 0.0.0.1.0.0 | |
Gender Ratio: 31 | |
Catch Rate: 45 | |
Abilities: Overgrow (1) | Overgrow (2) | Chlorophyll (H) | |
Type: Grass / Poison |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Electron Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.mediaDevices.enumerateDevices().then(devices => { | |
navigator.mediaDevices.getUserMedia({ | |
video: { | |
deviceId: devices.filter(device => device.kind === 'videoinput' && device.label.match(/AVerMedia Live/))[0].deviceId | |
} | |
}).then((stream) => { | |
const video = document.querySelector('video') | |
video.srcObject = stream | |
video.onloadedmetadata = (e) => video.play() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"localDexId": "Galar Dex: Foreign", | |
"nationalDexId": "001", | |
"name": "Bulbasaur", | |
"stats": { | |
"hp": 0, | |
"atk": 0, | |
"def": 0, | |
"spa": 0, | |
"spd": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
balanceAdjustmentTimer() | |
{ | |
this.balanceAdjustmentCounter++; | |
if ( this.balanceAdjustmentCounter <= config.balanceCheckInterval ) return; | |
this.balanceAdjustmentCounter = 0; | |
this.playerBalances.map((currentBalance, username) => { | |
let currentBalance = this.getBalance(username) | |
if (currentBalance >= config.minimumBalance * 100) return currentBalance |
NewerOlder