Rockbadger weapons capture

A screenshot of code that I wish to reduce to a simpler version rather than all the If statements.

If this appears somewhere random then I blame the Infinite Improbability Drive.



mmphosis's picture

Rather than variable Pn, instead use an array PA(n).

2210 WP$ = P$(PE) : GL = GL + PA(PE) : GOSUB 85 : GOTO 800
DEL 2220,2320