Showing 31 of 31 total issues
Function load
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public load(saveFile: SaveFileService) { this.yCoord = saveFile.getByte(0x260D); this.xCoord = saveFile.getByte(0x260E); this.yBlockCoord = saveFile.getByte(0x260F); this.xBlockCoord = saveFile.getByte(0x2610);
- Create a ticketCreate a ticket
Function save
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public save(saveFile: SaveFileService) { saveFile.setByte(0x260D, this.yCoord); saveFile.setByte(0x260E, this.xCoord); saveFile.setByte(0x260F, this.yBlockCoord); saveFile.setByte(0x2610, this.xBlockCoord);
- Create a ticketCreate a ticket
Type number trivially inferred from a number literal, remove type annotation Open
public playerJumpingYScrnCoords: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public flyOutofBattle: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public standingOnDoor: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public safariBallCount: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public xOffsetSinceLastSpecialWarp: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public strengthOutsideBattle: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public playerCurDir: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public walkBikeSurf: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public movingThroughDoor: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public yOffsetSinceLastSpecialWarp: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public standingOnWarp: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public usedCardKey: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public playerLastStopDir: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public safariSteps: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public noBattles: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public battleEndedOrBlackout: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public safariGameOver: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public finalLedgeJumping: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public xCoord: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public yBlockCoord: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public yCoord: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public xBlockCoord: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public isBattle: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public isTrainerBattle: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public usingLinkCable: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public surfingAllowed: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
if statements must be braced Open
if (saveFile !== undefined) this.load(saveFile as SaveFileService);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type number trivially inferred from a number literal, remove type annotation Open
public playerMoveDir: number = 0;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Type boolean trivially inferred from a boolean literal, remove type annotation Open
public spinPlayer: boolean = false;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks