This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: MJP Type: Subroutine Category: Flight Summary: Process a mis-jump into witchspace
Process a mis-jump into witchspace (which happens very rarely). Witchspace has a strange, almost dust-free aspect to it, and it is populated by hostile Thargoids. Using our escape pod will be fatal, and our position on the galactic chart is in-between systems. It is a scary place... There is a 0.78% chance that this routine is called from TT18 instead of doing a normal hyperspace, or we can manually trigger a mis-jump by holding down CTRL after first enabling the "author display" configuration option ("X") when paused.
Other entry points: ptg Called when the user manually forces a mis-jump
RTS111 Contains an RTS
.ptg LSR COK \ Set bit 0 of the competition flags in COK, so that the SEC \ competition code will include the fact that we have ROL COK \ manually forced a mis-jump into witchspace .MJP
\JSR CATLOD \ This instruction is commented out in the original \ source
This variation is blank in the Cassette, 6502 Second Processor and Master versions.
LDA #3 \ Call SHIPinA to load ship blueprints file D, which is JSR SHIPinA \ one of the two files that contain Thargoids
JSR LL164 \ Call LL164 to show the hyperspace tunnel and make the \ hyperspace sound for a second time (as we already \ called LL164 in TT18) JSR RES2 \ Reset a number of flight variables and workspaces, as \ well as setting Y to &FF STY MJ \ Set the mis-jump flag in MJ to &FF, to indicate that \ we are now in witchspace
If speech is enabled on the Executive version, it will say "Oh shit, it's a mis-jump" when we mis-jump into witchspace (this happens with both accidental and manually triggered mis-jumps).
This variation is blank in the Cassette, Disc (flight) and Master versions.
IF _EXECUTIVE LDX #4 \ Call TALK with X = 4 to say "Oh shit, it's a mis-jump" JSR TALK \ using the Watford Electronics Beeb Speech Synthesiser \ (if one is fitted and speech has been enabled) ENDIF
.MJP1 JSR GTHG \ Call GTHG to spawn a Thargoid ship and a Thargon \ companion
The Master version spawns three Thargoid motherships in witchspace, while the other versions spawn four.
Tap on a block to expand it, and tap it again to revert.
STA NOSTM \ Set NOSTM (the maximum number of stardust particles) \ to 3, so there are fewer bits of stardust in \ witchspace (normal space has a maximum of 18) LDX #0 \ Initialise the front space view JSR LOOK1 LDA QQ1 \ Fetch the current system's galactic y-coordinate in EOR #%00011111 \ QQ1 and flip bits 0-5, so we end up somewhere in the STA QQ1 \ vicinity of our original destination, but above or \ below it in the galactic chart
This variation is blank in the Cassette, Disc (flight) and 6502 Second Processor versions.
RTS \ Return from the subroutine
RTS \ Return from the subroutine