1.05 release

master
Jay 6 years ago
parent 0003a06f08
commit 93117e5213

@ -1,3 +1,32 @@
```
_____ _____ _ _ _______ __ _____ ____
| __ \| __ \| | | |/ ____\ \ / /\ | __ \ / / /
| | | | |__) | | | | | __ \ \ /\ / / \ | |__) | / / /__
| | | | _ /| | | | | |_ | \ \/ \/ / /\ \ | _ / / / / _ \
| |__| | | \ \| |__| | |__| | \ /\ / ____ \| | \ \ / / / __/
|_____/|_| \_\\____/ \_____| \/ \/_/ \_\_| \_\/_/_/ \___|
```
CHANGELOG
1.05: 5-NOV-2018
First GitLab Exclusive Release. No more Sourceforge
Changed to BSD 2-Clause Simplified License
Anti-Cheat System:
Pointed out from the c64 version and existing in core code; it was easy to use negative numbers in the right places and cheat your way to riches. I've fixed this, but the game lets you get away with some cheating. Cheat too much and it will boot you out of the game.
Inventory Calculation for Police:
Police originally only acted if your inventory was more than 50. They now only react if you're using more than half your total inventory space.
Police Shoot When You Run
IF you don't have a gun your only choice is to run. Originally you just ran and nothing happened. The cops now shoot at you if you do. Hey...welcome to the jungle.
Code Condesing
What was partially done in 1.04 is now totally done. The total number of lines of code have been condensed to less than 300. This has greatly reduced the size of the program.
1.04:
Initial commit to gitlab.

Binary file not shown.

@ -1,497 +1,330 @@
10 REM DRUGWAR2EV104.BAS - 29/10/2018 - 18h15
20 REM DRUGWAR//E - VERSION 1.04
30 REM 29-OCT-2018
40 REM COPYRIGHT 2018 JAY MOORE
50 REM RELEASED UNDER GPL V3
60 REM DRUGWAR2E.SOURCEFORGE.IO
70 REM TWITTER: _NQ4T
80 RV=1.04
90 GOTO 4450
100 REM->HOME
110 POKE 36,0 : POKE 37, 1 : CALL -958
120 INVERSE:?" ":NORMAL:?:?:RETURN
130 REM->TITLEBAR
140 HOME:HTAB 16 : ? "DRUGWAR//E":GOSUB 110:GOTO 730
150 REM->WAIT
160 ?
170 INPUT "PRESS ENTER TO CONTINUE.";X$
180 RETURN
190 REM->TWOFIFTEEN
200 VTAB 2 : HTAB 15:RETURN
210 REM->TWOSIXTEEN
220 VTAB 2:HTAB 16:RETURN
230 REM->TWOSEVENTEEN
240 VTAB 2:HTAB 17:RETURN
250 REM->TWOEIGHTEEN
260 VTAB 2: HTAB 18:RETURN
270 REM->TWONINETEEN
280 VTAB 2:HTAB 19:RETURN
290 REM->JETALTHERE
300 INVERSE:GOSUB 280:?"JET":NORMAL:RETURN
310 REM->TIMERA
320 FOR J = 1 TO 2500:NEXT J:K = INT(RND(2)+.5):RETURN
330 REM->TIMERB
340 FOR J = 1 TO 1000:NEXT J:RETURN
350 REM->TIMERC
360 FOR J = 1 TO 2000:NEXT J:RETURN
370 REM->HOWMUCHBUY
380 ? "YOU CAN AFFORD ";J:? "YOU CAN CARRY ";F
390 REM->HOWMANYBUY
400 ?:INPUT "HOW MANY? (ENTER 0 CANCEL): ";K
410 IF K=0 GOTO 730
420 IF K>F THEN INVERSE : ? "YOU CAN'T CARRY THAT MUCH!" : NORMAL : GOTO 400
430 IF K>J THEN INVERSE : ? "YOU CAN'T AFFORD THAT MUCH!" : NORMAL : GOTO 400
440 RETURN
450 REM->HOWMUCHSELL
460 ? "YOU CAN SELL: ";J:?
470 REM->HOWMANYSELL
480 INPUT "HOW MANY? (ENTER 0 TO CANCEL.): ";K
490 IF K>J THEN ? "YOU DON'T HAVE THAT MANY!" : GOTO 480
500 IF K=0 GOTO 730
510 RETURN
520 REM->FREESPACE
530 F=I-((G*5)+M+N+O+U+T+Q):RETURN
540 REM->CHASE
550 INVERSE:GOSUB 200: ?"BEING CHASED":NORMAL:RETURN
560 REM->GMOD
570 SPEED=100:GOSUB 220:INVERSE:?"GAME OVER":NORMAL:SPEED=255:RETURN
580 REM->BRONXCHECK
590 IF P$ = "THE BRONX" THEN RETURN
600 ? "YOU NEED TO HEAD TO THE BRONX":? "TO TAKE CARE OF THIS BUSINESS."
610 GOSUB 360:GOTO 730
620 REM->DAILY
630 C=INT(RND(5)*12000+16000.5):H=INT(RND(5)*7000+5000.5):A=INT((RND(5)*34+10)*100+.5):Z=INT((RND(5)*42+33)*10+.5):S=INT((RND(5)*15+7)*10+.5):L=INT((RND(5)*4+1)*10+.5):B=INT(RND(5)*20+.5):D=D+1
640 REM->CHECKDAY
650 IF D >= 31 GOTO 4750:RETURN
660 REM->SCORECALCULATE
670 K=(W+E)-V:IF K<0 THEN K=0 : RETURN
680 K=INT(SQR((K/31.5)+.5)):IF K>100 THEN K=100
690 RETURN
700 REM->GAMESTART
710 W=2000:E=0:V=5000:P$="THE BRONX":G=0:I=100:M=0:N=0:O=0:U=0:T=0:Q=0:GOSUB 630:GOTO 140
720 REM->MENU
730 GOSUB 110:GOSUB 530
740 INVERSE : VTAB 2:HTAB 4:? "DAY: "D : GOSUB 260:?"LOCATION: "P$ :NORMAL
750 VTAB4:? "(C)HECK PRICES":? "(T)RENCHCOAT":? "(B)UY":? "(S)ELL":? "(J)ET":? "SEE (L)OAN SHARK":? "(V)ISIT BANK":?
760 INPUT "PLEASE MAKE YOUR SELECTION: ";X$
770 IF X$ = "C" GOTO 860
780 IF X$ = "T" GOTO 980
790 IF X$ = "B" GOTO 1100
800 IF X$ = "S" GOTO 1280
810 IF X$ = "J" GOTO 1490
820 IF X$ = "L" GOTO 1730
830 IF X$ = "V" GOTO 1860
840 GOTO 730
850 REM->PRICES
860 GOSUB 110
870 INVERSE:GOSUB 260:?"PRICES":NORMAL
880 ?:?"COCAINE:","$"C
890 ?"HEROIN:","$"H
900 ?"ACID:","$"A
910 ?"WEED:","$"Z
920 ?"SPEED:","$"S
930 ?"LUDES:","$"L
940 ?"WALLET:","$"W
950 GOSUB 160
960 GOTO 730
970 REM->INVENTORY
980 GOSUB 110
990 INVERSE:GOSUB 220 :?"TRENCHCOAT":NORMAL
1000 ?:?"COCAINE:",M
1010 ?"HEROIN:",N
1020 ?"ACID:",O
1030 ?"WEED:",U
1040 ?"SPEED:",T
1050 ?"LUDES:",Q
1060 ?"FREE SPACE:",F
1070 GOSUB 160
1080 GOTO 730
1090 REM->BUY
1100 GOSUB 110
1110 INVERSE:GOSUB 280: ?"BUY":NORMAL
1120 ?:?"WHAT DO YOU WANT TO BUY?":?
1130 ? "(C)OCAINE"
1140 ? "(H)EROIN"
1150 ? "(A)CID"
1160 ? "(W)EED"
1170 ? "(S)PEED"
1180 ? "(L)UDES"
1190 INPUT "ENTER SELECTION: ";X$
1200 IF X$="C" GOTO 1980
1210 IF X$="H" GOTO 2050
1220 IF X$="A" GOTO 2120
1230 IF X$="W" GOTO 2190
1240 IF X$="S" GOTO 2260
1250 IF X$="L" GOTO 2330
1260 GOTO 730
1270 REM->SELL
1280 GOSUB 110
1290 INVERSE: GOSUB 260: ?"SELL":NORMAL
1300 ?:? "WHAT WOULD YOU LIKE TO SELL?":?
1310 ? "(C)OCAINE"
1320 ? "(H)EROIN"
1330 ? "(A)CID"
1340 ? "(W)EED"
1350 ? "(S)PEED"
1360 ? "(L)UDES"
1370 REM->SELLSEL
1380 INPUT "ENTER SELECTION: (0 TO CANCEL)";X$
1390 IF X$="C" GOTO 2400
1400 IF X$="H" GOTO 2470
1410 IF X$="A" GOTO 2540
1420 IF X$="W" GOTO 2610
1430 IF X$="S" GOTO 2680
1440 IF X$="L" GOTO 2750
1450 IF X$="0" GOTO 730
1460 ? "INVALID SELECTION!"
1470 GOTO 1380
1480 REM->JET
1490 GOSUB 110
1500 GOSUB 300
1510 ?
1520 ? "(B)RONX"
1530 ? "(G)HETTO"
1540 ? "(C)ENTRAL PARK
1550 ? "(M)ANHATTAN"
1560 ? "CONEY (I)SLAND"
1570 ? "BROO(K)LYN"
1580 ? "(O)OPS...STAY!"
1590 INPUT "WHERE TO DUDE? ";X$
1600 IF X$="B" THEN Y$ = "THE BRONX" : GOTO 1690
1610 IF X$="G" THEN Y$ = "THE GHETTO" : GOTO 1690
1620 IF X$="C" THEN Y$ = "CENTRAL PARK" : GOTO 1690
1630 IF X$="M" THEN Y$ = "MANHATTAN" : GOTO 1690
1640 IF X$="I" THEN Y$ = "CONEY ISLAND" : GOTO 1690
1650 IF X$="K" THEN Y$ = "BROOKLYN" : GOTO 1690
1660 IF X$="O" THEN GOTO 730
1670 GOTO 1490
1680 REM->JETB
1690 IF Y$=P$ THEN GOTO 2820
1700 P$ = Y$ : Y$ = ""
1710 GOTO 2900
1720 REM->LOAN
1730 GOSUB 110
1740 INVERSE : GOSUB 220:? "LOAN SHARK":NORMAL
1750 ?
1760 GOSUB 590
1770 ? "YOUR DEBT IS: $";V
1780 ? "YOU HAVE: $";W
1790 ?
1800 INPUT "(R)EPAY, (B)ORROW, (L)EAVE: ";X$
1810 IF X$ = "R" THEN GOTO 4150
1820 IF X$ = "B" THEN GOTO 4220
1830 IF X$ = "L" THEN GOTO 730
1840 GOTO 1730
1850 REM->BANK
1860 GOSUB 110
1870 INVERSE : GOSUB 200: ?"BANK O'MURICA":NORMAL
1880 ? : GOSUB 590
1890 ? "YOUR BALANCE: $";E
1900 ? "YOUR WALLET: $";W:?
1910 INPUT "(D)EPOSIT, (W)ITHDRAW, (L)EAVE: ";X$
1920 IF X$ = "D" THEN GOTO 4310
1930 IF X$ = "W" THEN GOTO 4380
1940 IF X$ = "L" THEN GOTO 730
1950 IF X$ = EG$ THEN GOTO @EGG
1960 GOTO 1860
1970 REM->COKEBUY
1980 GOSUB 110
1990 INVERSE:GOSUB 220: ?"BUY COCAINE":NORMAL
2000 ? :J=INT(W/C)
2010 GOSUB 380
2020 M=M+K : W=W-(C*K)
2030 GOTO 730
2040 REM->HERBUY
2050 GOSUB 110
2060 INVERSE:GOSUB 220: ?"BUY HEROIN":NORMAL
2070 ? : J=INT(W/H)
2080 GOSUB 380
2090 N=N+K : W=W-(H*K)
2100 GOTO 730
2110 REM->ACIDBUY
2120 GOSUB 110
2130 INVERSE:GOSUB 240:?"BUY ACID":NORMAL
2140 ? : J=INT(W/A)
2150 GOSUB 380
2160 O=O+K : W=W-(A*K)
2170 GOTO 730
2180 REM->WEEDBUY
2190 GOSUB 110
2200 INVERSE:GOSUB 240: ?"BUY WEED":NORMAL
2210 ? : J=INT(W/Z)
2220 GOSUB 380
2230 U=U+K : W=W-(Z*K)
2240 GOTO 730
2250 REM->SPDBUY
2260 GOSUB 110
2270 INVERSE:GOSUB 240: ?"BUY SPEED":NORMAL
2280 ? : J=INT(W/S)
2290 GOSUB 380
2300 T=T+K : W=W-(S*K)
2310 GOTO 730
2320 REM->LUDBUY
2330 GOSUB 110
2340 INVERSE:GOSUB 240: ?"BUY LUDES":NORMAL
2350 ? : J=INT(W/L)
2360 GOSUB 380
2370 Q=Q+K : W=W-(L*K)
2380 GOTO 730
2390 REM->COKESELL
2400 GOSUB 110
2410 INVERSE:GOSUB 200:?"SELL COCAINE":NORMAL
2420 ? : J=M
2430 GOSUB 460
2440 M=M-K : W=W+(C*K)
2450 GOTO 730
2460 REM->HERSELL
2470 GOSUB 110
2480 INVERSE:GOSUB 240:?"SELL HEROIN":NORMAL
2490 ?:J=N
2500 GOSUB 460
2510 N=N-K:W=W+(H*K)
2520 GOTO 730
2530 REM->ACIDSELL
2540 GOSUB 110
2550 INVERSE:GOSUB 240: ?"SELL ACID":NORMAL
2560 ?:J=O
2570 GOSUB 460
2580 O=O-K:W=W+(A*K)
2590 GOTO 730
2600 REM->WEEDSELL
2610 GOSUB 110
2620 INVERSE:GOSUB 240:?"SELL WEED":NORMAL
2630 ?:J=U
2640 GOSUB 460
2650 U=U-K:W=W+(Z*K)
2660 GOTO 730
2670 REM->SPDSELL
2680 GOSUB 110
2690 INVERSE:GOSUB 220:?"SELL SPEED":NORMAL
2700 ?:J=T
2710 GOSUB 460
2720 T=T-K:W=W+(S*K)
2730 GOTO 730
2740 REM->LUDSELL
2750 GOSUB 110
2760 INVERSE:GOSUB 220:?"SELL LUDES":NORMAL
2770 ?:J=Q
2780 GOSUB 460
2790 Q=Q-K:W=W+(L*K)
2800 GOTO 730
2810 REM->ALREADYTHERE
2820 GOSUB 110
2830 GOSUB 300
2840 ?
2850 ? "YOU'RE ALREADY IN:"
2860 ? " ";P$
2870 GOSUB 360
2880 GOTO 1490
2890 REM->SUBWAY
2900 GOSUB 110:GOSUB 630:V=INT(V*1.1+.5):E=INT(E*1.06+.5) :INVERSE:GOSUB 260:?"SUBWAY":NORMAL:?:?
2910 IF B=1 THEN GOTO 3120
2920 IF B=2 THEN GOTO 3140
2930 IF B=3 THEN GOTO 3160
2940 IF B=4 THEN GOTO 3180
2950 IF B=5 THEN GOTO 3180
2960 IF B=6 THEN GOTO 3200
2970 IF B=7 THEN GOTO 3200
2980 IF B=8 THEN GOTO 3220
2990 IF B=9 THEN GOTO 3240
3000 IF B=10 THEN GOTO 3240
3010 IF B=11 THEN GOTO 3240
3020 IF B=12 THEN GOTO 3810
3030 IF B=13 THEN GOTO 3810
3040 IF B=14 THEN GOTO 3890
3050 IF B=15 THEN GOTO 3940
3060 IF B=16 THEN GOTO 3990
3070 IF B=17 THEN GOTO 4100
3080 REM->NOTHINGHAPPENED
3090 REM->NOTHINGHAPPENS
3100 ?:? "WELCOME TO ";P$:?:GOSUB 360:GOTO 730
3110 REM->CHEAPLUDES
3120 ? "RIVAL DEALERS ARE SELLING CHEAP LUDES!":L=2:GOSUB 360:GOTO 730
3130 REM->CHEEPWEED
3140 ? "WEED PRICES HAVE BOTTOMED-OUT!":Z=122:GOSUB 360:GOTO 730
3150 REM->PIGHEROIN
3160 ? "PIGS ARE SELLING CHEAP HEROIN":? "FROM LAST WEEK'S RAID!":H=INT((RND(9)*1150)+850.5):GOSUB 360:GOTO 730
3170 REM->HEROINBUST
3180 ? "ADDICTS ARE BUYING HEROIN":? "AT OUTRAGEOUS PRICES!":H=INT((RND(9)*25000)+18000.5):GOSUB 360:GOTO 730
3190 REM->COKEBUST
3200 ? "PIGS MADE A BIG COKE BUST!":? "PRICES ARE OUTRAGEOUS!!!!":C=INT((RND(9)*60000)+80000.5):GOSUB 360:GOTO 730
3210 REM->MUGGED
3220 ? "YOU GOT MUGGED!":?:J=INT((W/3)*2):? "YOU LOST $";W-J:W=W-J:GOSUB 360:GOTO 730
3230 REM->COPS
3240 K=M+N+U+O+T+P:IF K<50 THEN GOTO 3090
3250 IF B=9 THEN B = 2
3260 IF B=10 THEN B=4
3270 IF B=11 THEN B=5
3280 ? "IT'S THE COPS!":?:? "OFFICER HARDASS AND ";B-1;" OF HIS":? "DEPUTIES ARE AFTER YOU!":?:GOSUB 360:GOTO 3300
3290 REM->POLICE
3300 GOSUB 110:GOSUB 550:?:? :? "VIEW (G)UNS":? "VIEW (D)AMAGE":? "(N)UMBER OF PIGS":? "(R)UN":? "(F)IGHT":?
3310 INPUT "WHAT DO YOU WANT TO DO? ";X$
3320 IF X$="G" GOTO 3390
3330 IF X$ = "D" GOTO 3410
3340 IF X$ = "N" GOTO 3430
3350 IF X$ = "R" GOTO 3450
3360 IF X$="F" GOTO 3500
3370 GOTO 3300
3380 REM->PGUN
3390 GOSUB 110:GOSUB 550:?:? :? "YOU HAVE ";G;" GUNS.:?:GOSUB 160:GOTO 3300
3400 REM->DAMAGE
3410 GOSUB 110:GOSUB 550:?:? :? "YOUR HEALTH IS ";BB;".":?:? "0 AND YOU DIE!":?:GOSUB 160:GOTO 3300
3420 REM->NCOPS
3430 GOSUB 110:GOSUB 550:?:?:? "THERE ARE ";B;" PIGS STILL CHASING YOU!":?:?:GOSUB 160:GOTO 3300
3440 REM->RUN
3450 GOSUB 110:GOSUB 550:?:?:? "RUNNING...":GOSUB 320:IF K = 0 THEN ? "YOU LOST THEM IN AN ALLEY!" : GOTO 3480
3460 ? "YOU CAN'T SHAKE THEM!":?:GOSUB 160:GOTO 3300
3470 REM->LOSERUN
3480 ?:GOSUB 160:GOTO 730
3490 REM->FIGHT
3500 IF G<=0 THEN ? : ? : ? "YOU DON'T HAVE ANY GUNS!" : GOSUB 160 : GOTO 3300
3510 GOSUB 110:GOSUB 550
3520 ?:? "YOU SHOOT!":GOSUB 320:IF K=0 THEN GOTO 3550
3530 ? "YOU GOT ONE!" : B = B-1 : GOTO 3570
3540 REM->MISS
3550 ? "YOU MISSED!"
3560 REM->NEXT
3570 ?:?:IF B <= 0 THEN GOTO 3680
3580 GOSUB 340:? "THEY'RE FIRING AT YOU!":GOSUB 320:IF K=0 THEN GOTO 3620
3590 ? "YOU'VE BEEN HIT!":BB=BB-6:IF BB >= 0 GOTO 3660
3600 GOTO 3640
3610 REM->THEYMISS
3620 ? "THEY MISSED!"
3630 REM->NEXTA
3640 GOSUB 320:GOTO 3300
3650 REM->DED
3660 ?:? "YOU'VE BEEN KILLED!":GOSUB 160:GOTO 4750
3670 REM->ALLGONE
3680 ? "YOU KILLED ALL OF THEM!":?:GOSUB 320
3690 J=INT(((RND(7)*1250)+750)+.5):W=W+J
3700 ? "YOU FOUND $";J;" ON OFFICER HARDASS'"
3710 ? "CARCASS!"
3720 IF W>=1200 THEN GOTO 3750
3730 GOTO 730
3740 REM->DOCTOR
3750 GOSUB 360
3760 ?:? "WILL YOU PAY $1000 FOR A DOCTOR"
3770 INPUT "TO SEW YOU UP? (Y/N)";X$
3780 IF X$ <> "Y" THEN GOTO 730
3790 W=W-1000:BB=100:GOTO 730
3800 REM->GUNBUY
3810 IF W < 500 THEN GOTO 3090:GOSUB 530:IF F < 5 THEN GOTO 3090
3820 J=INT((RND(4)*2)+.5)
3830 IF J = 0 THEN Y$ = "BARETTA"
3840 IF J = 1 THEN Y$ = "SATURDAY NIGHT SPECIAL"
3850 IF J = 2 THEN Y$ = ".44 MAGNUM"
3860 ? "WILL YOU BUY A ";Y$:INPUT "FOR $400? (Y/N)";X$:IF X$ <> "Y" THEN GOTO 730
3870 G = G+1:W = W-400:GOTO 730
3880 REM->DEDWEED
3890 ? "THERE'S SOME WEED HERE THAT SMELLS":? "LIKE GOOD STUFF!!":?
3900 INPUT "WILL YOU SMOKE IT? (Y/N)";X$
3910 IF X$ = "Y" THEN GOTO 4630
3920 GOTO730
3930 REM->NEWCOAT
3940 IF W<300 THEN GOTO 3100
3950 ? "WILL YOU BUY A NEW TRENCHCOAT":INPUT "WITH MORE POCKETS FOR $200? (Y/N)";X$
3960 IF X$ <> "Y" THEN GOTO 730
3970 I=I+10:W=W-200:GOTO 730
3980 REM->DEDGUY
3990 GOSUB 530
4000 IF F<8 THEN GOTO 3100
4010 J=INT((RND(3)*7)+1.5):K=INT(RND(3)*5+.5)
4020 IF K=0 THEN Q=Q+J : Y$ = "LUDES"
4030 IF K=1 THEN T=T+J : Y$ = "SPEED"
4040 IF K=2 THEN U=U+J : Y$ = "WEED"
4050 IF K=3 THEN O=O+J : Y$ = "ACID"
4060 IF K=4 THEN N=N+J : Y$ = "HEROIN"
4070 IF K=5 THEN M=M+J : Y$ = "COKE"
4080 ? "YOU FOUND "J" UNITS OF "Y$:? "ON A DEAD DUDE IN THE SUBWAY!":?:GOSUB 360:GOTO 730
4090 REM->HOMEACID
4100 ? "THE MARKET HAS BEEN FLOODED"
4110 ? "WITH CHEAP HOME-MADE ACID!"
4120 A=INT((RND(4)*550)+250.5)
4130 GOSUB 360:GOTO 730
4140 REM->PAYME
4150 INPUT "REPAY HOW MUCH? ";K
4160 IF K>W THEN ?:? "YOU DON'T HAVE THAT MUCH!" : GOSUB 340 : GOTO 1730
4170 IF K>V THEN ?:? "YOU DON'T OWE THAT MUCH!" : GOSUB 340 : GOTO 1730
4180 W=W-K : V=V-K
4190 ?:? "THANK YOU."
4200 GOSUB 360:GOTO 730
4210 REM->BORROW
4220 ?
4230 INPUT "HOW MUCH DO YOU WANT? ";K
4240 ? : J=INT((RND(10)*10000)+4000)
4250 IF K>14000 THEN ? "HE'S NOT THAT STUPID!" : GOSUB 360 : GOTO 730
4260 IF K > J THEN ? "HE DOESN'T FEEL LIKE IT." : GOSUB 340 : GOTO 730
4270 V=V+K : W=W+K
4280 ?:? "HERE'S YOUR MONEY." : ? : ? "REMEMBER, I BREAK THUMBS."
4290 GOSUB 360:GOTO 730
4300 REM->DEPOSIT
4310 ?
4320 INPUT "HOW MUCH? ";J
4330 IF J>W THEN ? "YOU DON'T HAVE THAT MUCH CASH." : GOTO 4310
4340 E=E+J:W=W-J
4350 ?:? "THANK YOU FOR YOUR DEPOSIT."
4360 GOSUB 360:GOTO 730
4370 REM->MYMONEY
4380 ?
4390 INPUT "HOW MUCH? ";J
4400 IF J>E THEN ? "YOU DON'T HAVE SUFFICIENT FUNDS." : GOTO 4380
4410 E=E-J:W=W+J
4420 ?:? "THANK YOU FOR YOUR BUSINESS."
4430 GOSUB 360:GOTO 730
4440 REM->INSTRUCTIONS
4450 HOME:VTAB 2:HTAB10:? "WELCOME TO DRUGWAR//E":HTAB14:?"VERSION ";RV
4460 VTAB 8:HTAB 3:? "BASED ON THE CLASSIC TI-BASIC CLONE":HTAB 2:? "OF JOHN E. DELL'S 1984 IBM/TRS80 GAME."
4470 VTAB 12:HTAB 6:? "APPLESOFT VERSION BY: JAY MOORE":VTAB 19:INPUT "WOULD YOU LIKE INSTRUCTIONS? (Y/N): ";X$
4480 J =RND(-1 *(PEEK(78)+256*PEEK(79))):IF X$ = "Y" THEN GOTO 4510
4490 GOTO 710
4500 REM->INST
4510 HOME
4520 ?
4530 ? "THIS IS A GAME OF BUYING AND SELLING."
4540 ? "YOUR GOAL IS TO PAY OFF YOUR DEBT AND"
4550 ? "MAKE AS MUCH MONEY AS POSSIBLE IN A ONE"
4560 ? "MONTH PERIOD. PRICES FLUCTUATE EVERY DAYAND INTEREST ON YOUR LOAN IS CALCULATED AS WELL."
4570 ?:? "IF YOU DEAL TOO HEAVILY, YOU'LL ATTRACT THE ATTENTION OF THE POLICE."
4580 ?
4590 ? "COMMANDS ARE ENTERED USING THE LETTER HIGHLIGHTED (L)IKE (S)O. Y IS YES AND ANYTHING COUNTS AS NO."
4600 GOSUB 160
4610 GOTO 710
4620 REM->WEEDEND
4630 GOSUB 110
4640 INVERSE : GOSUB 200: ? "SMOKE WEED" : NORMAL
4650 SPEED = 50 :? "YOU HALLUCINATE ON THE WILDEST TRIP"
4660 ? "OF YOUR LIFE, STUMBLE ON TO THE TRACKS,"
4670 ? "AND GET CREAMED BY A TRAIN!"
4680 ?
4690 ?
4700 HTAB 10:? "JUST SAY NO TO DRUGS!":SPEED=255
4710 GOSUB 360
4720 GOSUB 340
4730 GOTO 4890
4740 REM->ENDGAME
4750 GOSUB 110
4760 GOSUB 670
4770 GOSUB 570
4780 ?
4790 ? "YOUR SCORE ON A SCALE OF 1 TO 100: ";K
4800 ?
4810 INPUT "WOULD YOU LIKE TO PLAY AGAIN? (Y/N)";X$
4820 IF X$ = "Y" THEN GOTO 710
4830 ? "THANKS FOR PLAYING."
4840 ? "REMEMBER, WATCH YOUR BACK."
4850 ? "HAVE A NICE DAY!"
4860 CLEAR
4870 END
4880 REM->IRONICEND
4890 GOSUB 110
4900 GOSUB 570
4910 ?
4920 SPEED = 50 : ? "YOU DIED FROM SMOKING WEED."
4930 ?:?:GOSUB 360: ?"SEE? GAMES ARE TOTALLY FAKE." : SPEED = 255:?
4940 INPUT "WOULD YOU LIKE TO PLAY AGAIN? ";X$
4950 IF X$= "Y" THEN GOTO 710
4960 CLEAR
4970 END
1
2 RV=1.05:GOTO308
3
4 POKE36,0:POKE37,1:CALL -958:INVERSE:?" ":NORMAL:?:?:RETURN
5
6 ?:INPUT"PRESS ENTER TO CONTINUE.";X$:RETURN
7
8 VTAB2:HTAB15:RETURN
9
10 VTAB2:HTAB16:RETURN
11
12 VTAB2:HTAB17:RETURN
13
14 VTAB2:HTAB18:RETURN
15
16 VTAB2:HTAB19:RETURN
17
18 INVERSE:GOSUB16:?"JET":NORMAL:RETURN
19
20 FORJ=1TO2500:NEXT J:K=INT(RND(1)+.5):RETURN
21
22 FORJ=1TO1000:NEXT J:RETURN
23
24 FORJ=1TO2000:NEXT J:RETURN
25
26 ?"YOU CAN AFFORD ";J:?"YOU CAN CARRY ";F
27
28 ?:INPUT"HOW MANY? (ENTER 0 CANCEL):";K:IFK=0GOTO65
29 IFK<ACTHENINVERSE:?"STOP CHEATING!":NORMAL:AD=AD+1:GOSUB52:GOSUB24:GOTO65
30 IFK<0THENAD=AD+1:GOSUB52:RETURN
31 IFK>FTHENINVERSE:?"YOU CAN'T CARRY THAT MUCH!":NORMAL:GOTO28
32 IFK>JTHENINVERSE:?"YOU CAN'T AFFORD THAT MUCH!":NORMAL:GOTO28
33 RETURN
34
35 ?"YOU CAN SELL:";J:?
36
37 INPUT"HOW MANY? (ENTER 0 TO CANCEL.):";K
38 IFK=0GOTO65
39 IFK>JTHEN?"YOU DON'T HAVE THAT MANY!":GOTO37
40 RETURN
41
42 F=I-((G*5)+M+N+O+U+T+Q):RETURN
43
44 INVERSE:GOSUB8:?"BEING CHASED":NORMAL:RETURN
45
46 SPEED=100:GOSUB10:INVERSE:?"GAME OVER":NORMAL:SPEED=255:RETURN
47
48 IFP$="THE BRONX"THEN RETURN
49 ?"YOU NEED TO HEAD TO THE BRONX":?"TO TAKE CARE OF THIS BUSINESS."
50 GOSUB24:GOTO65
51
52 IFAD>=3THENGOTO315
53 RETURN
54
55 C=INT(RND(1)*12000+16000.5):H=INT(RND(1)*7000+5000.5):A=INT((RND(1)*34+10)*100+.5):Z=INT((RND(1)*42+33)*10+.5):S=INT((RND(1)*15+7)*10+.5):L=INT((RND(1)*4+1)*10+.5):B=INT(RND(1)*20+.5):D=D+1:AC=INT(((RND(1)*3)+1)*-1)
56
57 IFD>=31GOTO320:RETURN
58
59 K=(W+E)-V:IFK<0THENK=0:RETURN
60 K=INT(SQR((K/31.5)+.5)):IFK>100THENK=100
61 RETURN
62
63 W=2000:E=0:V=5000:P$="THE BRONX":G=0:I=100:M=0:N=0:O=0:U=0:T=0:Q=0:GOSUB55:HOME:HTAB16:?"DRUGWAR//E":GOTO65
64
65 GOSUB4:GOSUB42
66 INVERSE:VTAB2:HTAB4:?"DAY:"D:GOSUB14:?"LOCATION:"P$:NORMAL
67 VTAB4:?"(C)HECK PRICES":?"(T)RENCHCOAT":?"(B)UY":?"(S)ELL":?"(J)ET":?"SEE (L)OAN SHARK":?"(V)ISIT BANK":?
68 INPUT"PLEASE MAKE YOUR SELECTION:";X$
69 IFX$="C"GOTO78
70 IFX$="T"GOTO83
71 IFX$="B"GOTO88
72 IFX$="S"GOTO100
73 IFX$="J"GOTO113
74 IFX$="L"GOTO129
75 IFX$="V"GOTO135
76 GOTO65
77
78 GOSUB4
79 INVERSE:GOSUB14:?"PRICES":NORMAL
80 ?:?"COCAINE:","$"C:?"HEROIN:","$"H:?"ACID:","$"A:?"WEED:","$"Z:?"SPEED:","$"S:?"LUDES:","$"L:?"WALLET:","$"W
81 GOSUB6:GOTO65
82
83 GOSUB4
84 INVERSE:GOSUB10:?"TRENCHCOAT":NORMAL
85 ?:?"COCAINE:",M:?"HEROIN:",N:?"ACID:",O:?"WEED:",U:?"SPEED:",T:?"LUDES:",Q:?"FREE SPACE:",F
86 GOSUB6:GOTO65
87
88 GOSUB4
89 INVERSE:GOSUB16:?"BUY":NORMAL
90 ?:?"WHAT DO YOU WANT TO BUY?":?:?"(C)OCAINE":?"(H)EROIN":?"(A)CID":?"(W)EED":?"(S)PEED":?"(L)UDES"
91 INPUT"ENTER SELECTION:";X$
92 IFX$="C"GOTO142
93 IFX$="H"GOTO144
94 IFX$="A"GOTO146
95 IFX$="W"GOTO148
96 IFX$="S"GOTO150
97 IFX$="L"GOTO152
98 GOTO65
99
100 GOSUB4:INVERSE:GOSUB14:?"SELL":NORMAL
101 ?:?"WHAT WOULD YOU LIKE TO SELL?":?:?"(C)OCAINE":?"(H)EROIN":?"(A)CID":?"(W)EED":?"(S)PEED":?"(L)UDES"
102
103 INPUT"ENTER SELECTION:(0 TO CANCEL)";X$
104 IFX$="C"GOTO154
105 IFX$="H"GOTO156
106 IFX$="A"GOTO158
107 IFX$="W"GOTO160
108 IFX$="S"GOTO162
109 IFX$="L"GOTO164
110 IFX$="0"GOTO65
111 ?"INVALID SELECTION!":GOTO103
112
113 GOSUB4:GOSUB18
114 ?:?"(B)RONX":?"(G)HETTO":?"(C)ENTRAL PARK
115 ?"(M)ANHATTAN":?"CONEY (I)SLAND":?"BROO(K)LYN":?"(O)OPS...STAY!":INPUT"WHERE TO DUDE?";X$
116 IFX$="B"THEN Y$="THE BRONX":GOTO125
117 IFX$="G"THEN Y$="THE GHETTO":GOTO125
118 IFX$="C"THEN Y$="CENTRAL PARK":GOTO125
119 IFX$="M"THEN Y$="MANHATTAN":GOTO125
120 IFX$="I"THEN Y$ ="CONEY ISLAND":GOTO125
121 IFX$="K"THEN Y$="BROOKLYN":GOTO125
122 IFX$="O"THENGOTO65
123 GOTO113
124
125 IFY$=P$THENGOTO166
126 P$=Y$ :Y$=""
127 GOTO168
128
129 GOSUB4:INVERSE:GOSUB10:?"LOAN SHARK":NORMAL:?:GOSUB48:?"YOUR DEBT IS:$";V:?"YOU HAVE:$";W:?:INPUT"(R)EPAY, (B)ORROW, (L)EAVE:";X$
130 IFX$="R"THENGOTO285
131 IFX$="B"THENGOTO290
132 IFX$="L"THENGOTO65
133 GOTO129
134
135 GOSUB4:INVERSE:GOSUB8:?"BANK O'MURICA":NORMAL:?:GOSUB48:?"YOUR BALANCE:$";E:?"YOUR WALLET:$";W:?
136 INPUT"(D)EPOSIT, (W)ITHDRAW, (L)EAVE:";X$
137 IFX$="D"THENGOTO296
138 IFX$="W"THENGOTO303
139 IFX$="L"THENGOTO65
140 GOTO135
141
142 GOSUB4:INVERSE:GOSUB10:?"BUY COCAINE":NORMAL:?:J=INT(W/C):AC=0:GOSUB26:M=M+K:W=W-(C*K):GOTO65
143
144 GOSUB4:INVERSE:GOSUB10:?"BUY HEROIN":NORMAL:?:J=INT(W/H):AC=0:GOSUB26:N=N+K:W=W-(H*K):GOTO65
145
146 GOSUB4:INVERSE:GOSUB12:?"BUY ACID":NORMAL:?:J=INT(W/A):GOSUB26:O=O+K:W=W-(A*K):GOTO65
147
148 GOSUB4:INVERSE:GOSUB12:?"BUY WEED":NORMAL:?:J=INT(W/Z):GOSUB26:U=U+K:W=W-(Z*K):GOTO65
149
150 GOSUB4:INVERSE:GOSUB12:?"BUY SPEED":NORMAL:?:J=INT(W/S):GOSUB26:T=T+K:W=W-(S*K):GOTO65
151
152 GOSUB4:INVERSE:GOSUB12:?"BUY LUDES":NORMAL:?:J=INT(W/L):GOSUB26:Q=Q+K:W=W-(L*K):GOTO65
153
154 GOSUB4:INVERSE:GOSUB8:?"SELL COCAINE":NORMAL:?:J=M:GOSUB35:M=M-K:W=W+(C*K):GOTO65
155
156 GOSUB4:INVERSE:GOSUB12:?"SELL HEROIN":NORMAL:?:J=N:GOSUB35:N=N-K:W=W+(H*K):GOTO65
157
158 GOSUB4:INVERSE:GOSUB12:?"SELL ACID":NORMAL:?:J=O:GOSUB35:O=O-K:W=W+(A*K):GOTO65
159
160 GOSUB4:INVERSE:GOSUB12:?"SELL WEED":NORMAL:?:J=U:GOSUB35:U=U-K:W=W+(Z*K):GOTO65
161
162 GOSUB4:INVERSE:GOSUB10:?"SELL SPEED":NORMAL:?:J=T:GOSUB35:T=T-K:W=W+(S*K):GOTO65
163
164 GOSUB4:INVERSE:GOSUB10:?"SELL LUDES":NORMAL:?:J=Q:GOSUB35:Q=Q-K:W=W+(L*K):GOTO65
165
166 GOSUB4:GOSUB18:?:?"YOU'RE ALREADY IN:":HTAB15:? P$:GOSUB24:GOTO113
167
168 GOSUB4:GOSUB55:V=INT(V*1.1+.5):E=INT(E*1.06+.5):INVERSE:GOSUB14:?"SUBWAY":NORMAL:?:?
169 IFB=1THENGOTO190
170 IFB=2THENGOTO192
171 IFB=3THENGOTO194
172 IFB=4THENGOTO196
173 IFB=5THENGOTO196
174 IFB=6THENGOTO198
175 IFB=7THENGOTO198
176 IFB=8THENGOTO200
177 IFB=9THENGOTO202
178 IFB=10THENGOTO202
179 IFB=11THENGOTO202
180 IFB=12THENGOTO255
181 IFB=13THENGOTO255
182 IFB=14THENGOTO263
183 IFB=15THENGOTO267
184 IFB=16THENGOTO272
185 IFB=17THENGOTO283
186
187
188 ?:?"WELCOME TO ";P$:?:GOSUB24:GOTO65
189
190 ?"RIVAL DEALERS ARE SELLING CHEAP LUDES!":L=2:GOSUB24:GOTO65
191
192 ?"WEED PRICES HAVE BOTTOMED-OUT!":Z=122:GOSUB24:GOTO65
193
194 ?"PIGS ARE SELLING CHEAP HEROIN":?"FROM LAST WEEK'S RAID!":H=INT((RND(1)*1150)+850.5):GOSUB24:GOTO65
195
196 ?"ADDICTS ARE BUYING HEROIN":?"AT OUTRAGEOUS PRICES!":H=INT((RND(1)*25000)+18000.5):GOSUB24:GOTO65
197
198 ?"PIGS MADE A BIG COKE BUST!":?"PRICES ARE OUTRAGEOUS!!!!":C=INT((RND(1)*60000)+80000.5):GOSUB24:GOTO65
199
200 ?"YOU GOT MUGGED!":?:J=INT((W/3)*2):?"YOU LOST $";W-J:W=W-J:GOSUB24:GOTO65
201
202 GOSUB42:IFF<I/2THENGOTO187
203 IFB=9THENB=2
204 IFB=10THENB=4
205 IFB=11THENB=5
206 ?"IT'S THE COPS!":?:?"OFFICER HARDASS AND ";B-1;"OF HIS":?"DEPUTIES ARE AFTER YOU!":?:GOSUB24:GOTO208
207
208 GOSUB4:GOSUB44:?:?:?"VIEW (G)UNS":?"VIEW (D)AMAGE":?"(N)UMBER OF PIGS":?"(R)UN":?"(F)IGHT":?
209 INPUT"WHAT DO YOU WANT TO DO?";X$
210 IFX$="G"GOTO217
211 IFX$="D"GOTO219
212 IFX$="N"GOTO221
213 IFX$="R"GOTO223
214 IFX$="F"GOTO226
215 GOTO208
216
217 GOSUB4:GOSUB44:?:?:?"YOU HAVE ";G;"GUNS.:?:GOSUB6:GOTO208
218
219 GOSUB4:GOSUB44:?:?:?"YOUR HEALTH IS ";BB;".":?:?"0 AND YOU DIE!":?:GOSUB6:GOTO208
220
221 GOSUB4:GOSUB44:?:?:?"THERE ARE ";B;"PIGS STILL CHASING YOU!":?:?:GOSUB6:GOTO208
222
223 GOSUB4:GOSUB44:?:?:?"RUNNING...":GOSUB20:IFK=0THEN?"YOU LOST THEM IN AN ALLEY!":GOSUB24:GOTO65
224 ?"YOU CAN'T SHAKE THEM!":?:GOTO233
225
226 IFG<=0THEN?:?:?"YOU DON'T HAVE ANY GUNS!":GOSUB6:GOTO208
227 GOSUB4:GOSUB44
228 ?:?"YOU SHOOT!":GOSUB20:IFK=0THENGOTO231
229 ?"YOU GOT ONE!":B=B-1: GOTO233
230
231 ?"YOU MISSED!"
232
233 ?:?:IFB<=0THENGOTO244
234 GOSUB22:?"THEY'RE FIRING AT YOU!":GOSUB20:IFK=0THENGOTO238
235 ?"YOU'VE BEEN HIT!":BB=BB-6:IFBB>=0GOTO242
236 GOTO240
237
238 ?"THEY MISSED!"
239
240 GOSUB20:GOTO208
241
242 ?:?"YOU'VE BEEN KILLED!":GOSUB6:GOTO320
243
244 ?"YOU KILLED ALL OF THEM!":?:GOSUB20
245 J=INT(((RND(1)*1250)+750)+.5):W=W+J
246 ?"YOU FOUND $";J;"ON OFFICER HARDASS'"
247 ?"CARCASS!"
248 IFW>=1200THENGOTO251
249 GOTO65
250
251 GOSUB24:?:?"WILL YOU PAY $1000 FOR A DOCTOR":INPUT"TO SEW YOU UP? (Y/N)";X$
252 IFX$<>"Y"THENGOTO65
253 W=W-1000:BB=100:GOTO65
254
255 IFW<500THENGOTO187:GOSUB42:IFF<5THENGOTO187
256 J=INT((RND(1)*2)+.5)
257 IFJ=0THENY$="BARETTA"
258 IFJ=1THENY$="SATURDAY NIGHT SPECIAL"
259 IFJ=2THENY$=".44 MAGNUM"
260 ?"WILL YOU BUY A ";Y$:INPUT"FOR $400? (Y/N)";X$:IFX$<>"Y"THENGOTO65
261 G=G+1:W=W-400:GOTO65
262
263 ?"THERE'S SOME WEED HERE THAT SMELLS":?"LIKE GOOD STUFF!!":?:INPUT"WILL YOU SMOKE IT? (Y/N)";X$
264 IFX$="Y"THENGOTO317
265 GOTO65
266
267 IFW<300THENGOTO188
268 ?"WILL YOU BUY A NEW TRENCHCOAT":INPUT"WITH MORE POCKETS FOR $200? (Y/N)";X$
269 IFX$<>"Y"THENGOTO65
270 I=I+10:W=W-200:GOTO65
271
272 GOSUB42
273 IFF<8THENGOTO188
274 J=INT((RND(1)*7)+1.5):K=INT(RND(1)*5+.5)
275 IFK=0THENQ=Q+J:Y$="LUDES"
276 IFK=1THENT=T+J:Y$="SPEED"
277 IFK=2THENU=U+J:Y$="WEED"
278 IFK=3THENO=O+J:Y$="ACID"
279 IFK=4THENN=N+J:Y$="HEROIN"
280 IFK=5THENM=M+J:Y$="COKE"
281 ?"YOU FOUND "J"UNITS OF "Y$:?"ON A DEAD DUDE IN THE SUBWAY!":?:GOSUB24:GOTO65
282
283 ?"THE MARKET HAS BEEN FLOODED":?"WITH CHEAP HOME-MADE ACID!":A=INT((RND(1)*550)+250.5):GOSUB24:GOTO65
284
285 INPUT"REPAY HOW MUCH?";K:IFK=0THEN?"GET OUT OF HERE, LOSER!":GOSUB22:GOTO65
286 IFK>WTHEN?:?"YOU DON'T HAVE THAT MUCH!":GOSUB22:GOTO129
287 IFK>VTHEN?:?"YOU DON'T OWE THAT MUCH!":GOSUB22:GOTO129
288 W=W-K:V=V-K:?:?"THANK YOU.":GOSUB24:GOTO65
289
290 ?:J=INT((RND(1)*10000)+4000):INPUT"HOW MUCH DO YOU WANT?";K:?:IFK=0GOTO65
291 IFK<0THEN?"TRYING TO CHEAT? DOUBLE DEBT!":AD=AD+3:V=V*2:GOSUB24:GOSUB52:GOTO65
292 IFK>14000THEN?"HE'S NOT THAT STUPID!":GOSUB24:GOTO65
293 IFK>JTHEN?"HE DOESN'T FEEL LIKE IT.":GOSUB22:GOTO65
294 V=V+K:W=W+K:?:?"HERE'S YOUR MONEY.":?:?"
295
296 ?:K=INT((RND(1)*100)+1):INPUT"HOW MUCH?";J:IFJ=0GOTO65
297 IFJ>WTHEN?"YOU DON'T HAVE THAT MUCH CASH.":GOTO296
298 IFK=2THENGOTO301
299 IFJ<0THEN?"YOU TRIED TO ROB THE BANK, BUT BARELY":?"MADE IT OUT WITH NOTHING.":AD=AD+3:GOSUB24:GOTO65
300
301 E=E+J:W=W-J:?:?"THANK YOU FOR YOUR DEPOSIT.":GOSUB24:GOTO65
302
303 ?:INPUT"HOW MUCH?";J
304 IFJ<0THEN?"TRY MAKING A DEPOSIT.":GOSUB24:GOTO135
305 IFJ>ETHEN?"YOU DON'T HAVE SUFFICIENT FUNDS.":GOTO303
306 E=E-J:W=W+J:?:?"THANK YOU FOR YOUR BUSINESS.":GOSUB24:GOTO65
307
308 HOME:VTAB2:HTAB10:?"WELCOME TO DRUGWAR//E":HTAB14:?"VERSION ";RV:VTAB8:HTAB3:?"BASED ON THE CLASSIC TI-BASIC CLONE":HTAB2:?"OF JOHN E. DELL'S 1984 IBM/TRS80 GAME.":VTAB12:HTAB6:?"APPLESOFT VERSION BY:JAY MOORE"
309 VTAB19:INPUT"WOULD YOU LIKE INSTRUCTIONS? (Y/N):";X$:J =RND(-1 *(PEEK(78)+256*PEEK(79))):IFX$="Y"THENGOTO312
310 GOTO63
311
312 HOME:?:?"THIS IS A GAME OF BUYING AND SELLING.":?"YOUR GOAL IS TO PAY OFF YOUR DEBT AND":?"MAKE AS MUCH MONEY AS POSSIBLE IN A ONE":?"MONTH PERIOD. PRICES FLUCTUATE EVERY DAYAND INTEREST ON YOUR LOAN IS CALCULATED AS WELL."
313 ?:?"IF YOU DEAL TOO HEAVILY, YOU'LL ATTRACT THE ATTENTION OF THE POLICE.":?:?"COMMANDS ARE ENTERED USING THE LETTER HIGHLIGHTED (L)IKE (S)O. Y IS YES AND ANYTHING COUNTS AS NO.":GOSUB6:GOTO63
314
315 HOME:HTAB8:VTAB10:?"PUT A QUARTER IN YOUR ASS":GOSUB22:HTAB7:?"'CAUSE YOU PLAYED YOURSELF!":GOSUB24:GOSUB24:VTAB19:HTAB11:?"DON'T CHEAT SO MUCH.":GOSUB24:GOSUB24:GOSUB24:CLEAR:END
316
317 GOSUB4:INVERSE:GOSUB8:?"SMOKE WEED":NORMAL:SPEED=50:?"YOU HALLUCINATE ON THE WILDEST TRIP":?"OF YOUR LIFE, STUMBLE ON TO THE TRACKS,":?"AND GET CREAMED BY A TRAIN!":?:?
318 HTAB10:?"JUST SAY NO TO DRUGS!":SPEED=255:GOSUB24:GOSUB22:GOTO324
319
320 GOSUB4:GOSUB59:GOSUB46:?:?"YOUR SCORE ON A SCALE OF 1 TO 100:";K:?
321 INPUT"WOULD YOU LIKE TO PLAY AGAIN? (Y/N)";X$:IFX$="Y"THENGOTO63
322 ?"THANKS FOR PLAYING.":?"
323
324 GOSUB4:GOSUB46:?:SPEED=50:?"YOU DIED FROM SMOKING WEED.":?:?:GOSUB24:?"SEE? GAMES ARE TOTALLY FAKE.":SPEED=255:?:INPUT"WOULD YOU LIKE TO PLAY AGAIN?";X$:IFX$= "Y"THENGOTO63
325 CLEAR:END
326 REM DRUGWAR//E - VERSION 1.05
327 REM 5-NOV-2018
328 REM COPYRIGHT 2018 JAY MOORE
330 REM GITLAB.COM/DEWDUDE/DRUGWAR2E
331 REM TWITTER: _NQ4T

@ -1,589 +1,436 @@
rem Drugwar//e - Version 1.04
rem 27-OCT-2018
rem Copyright 2018 Jay Moore
rem Released under GPL v3
rem drugwar2e.sourceforge.io
rem twitter: _nq4t
rv=1.04
goto @instructions {because we're sticking subroutines up here}
£home
poke 36,0 : poke 37, 1 : call -958
inverse:?" ":normal:?:?:return
£titlebar {this literally just draws the game title at the top of the screen}
home:HTAB 16 : ? "Drugwar//e":gosub @home:goto @menu
rv=1.05:goto@instructions {because we're sticking subroutines up here}
£home {replaces home and rewrites only inverted bar - spc(40) doesn't have desired effect}
poke36,0:poke37,1:call -958:inverse:?" ":normal:?:?:return
£wait {ubiquitious "Press ENTER to continue}
?
input "Press enter to continue.";x$
return
?:input"Press enter to continue.";x$:return
[
Bunch of positions I use commonly.
]
£twofifteen
vtab 2 : htab 15:return
vtab2:htab15:return
£twosixteen
vtab 2:htab 16:return
vtab2:htab16:return
£twoseventeen
vtab 2:htab 17:return
vtab2:htab17:return
£twoeighteen
vtab 2: htab 18:return
vtab2:htab18:return
£twonineteen
vtab 2:htab 19:return
vtab2:htab19:return
£jetalthere
inverse:gosub @twonineteen:?"Jet":normal:return
inverse:gosub@twonineteen:?"Jet":normal:return
£timera
for j = 1 to 2500:next j:k = int(rnd(2)+.5):return
forj=1to2500:next j:k=int(rnd(1)+.5):return
£timerb
for j = 1 to 1000:next j:return
forj=1to1000:next j:return
£timerc
for j = 1 to 2000:next j:return
forj=1to2000:next j:return
[
"Common logic" has been moved to buy/sell subroutines.
This has cleaned the code up a bit
Rather than repeat the logic to check if a purchase or sale is valid based on inventory or wallet amount; we write either our drug inventory or the number we can afford to J; jump to these subroutines to ask for the amount; run the logic; and just return back to the subroutine if the buy/sale is valid...whichthenadjusts inventory and wallet. Otherwise we dump back to the menu.
]
£howmuchbuy {some common purchase code}
? "You can afford ";j:? "You can carry ";f
?"You can afford ";j:?"You can carry ";f
£howmanybuy
?:input "How many? (Enter 0 cancel): ";k
if K=0 goto @menu
if k>f THEN inverse : ? "You can't carry that much!" : normal : goto @howmanybuy
if k>j THEN inverse : ? "You can't afford that much!" : normal : goto @howmanybuy
?:input"How many? (Enter 0 cancel):";k:ifK=0goto@menu
ifk<ACtheninverse:?"STOP CHEATING!":normal:AD=AD+1:gosub@cheater:gosub@TIMERC:goto@MENU
ifk<0thenad=ad+1:gosub@cheater:return
ifk>ftheninverse:?"You can't carry that much!":normal:goto@howmanybuy
ifk>jtheninverse:?"You can't afford that much!":normal:goto@howmanybuy
return
£howmuchsell {common sell code}
? "You can sell: ";j:?
?"You can sell:";j:?
£howmanysell
input "How many? (Enter 0 to cancel.): ";k
If k>j then ? "You don't have that many!" : goto @howmanysell
if K=0 goto @menu
input"How many? (Enter 0 to cancel.):";k
ifK=0goto@menu
ifk>jthen?"You don't have that many!":goto@howmanysell
return
£freespace
f=i-((g*5)+m+n+o+u+t+q):return
£chase
inverse:gosub @twofifteen: ?"Being Chased":normal:return
inverse:gosub@twofifteen:?"Being Chased":normal:return
£gmod
speed=100:gosub @twosixteen:inverse:?"Game Over":normal:speed=255:return
speed=100:gosub@twosixteen:inverse:?"Game Over":normal:speed=255:return
£bronxcheck
if p$ = "THE BRONX" then return
? "you need to head to the bronx":? "to take care of this business."
gosub @timerc:goto @menu
ifp$="THE BRONX"then return
?"you need to head to the bronx":?"to take care of this business."
gosub@timerc:goto@menu
£cheater
ifad>=3thengoto@threestrikes
return
£daily {randomizes drug prices, adds a day, calculates interests, checks day number}
c=int(rnd(5)*12000+16000.5):h=int(rnd(5)*7000+5000.5):a=int((rnd(5)*34+10)*100+.5):z=int((rnd(5)*42+33)*10+.5):s=int((rnd(5)*15+7)*10+.5):l=int((rnd(5)*4+1)*10+.5):b=int(rnd(5)*20+.5):d=d+1
c=int(rnd(1)*12000+16000.5):h=int(rnd(1)*7000+5000.5):a=int((rnd(1)*34+10)*100+.5):z=int((rnd(1)*42+33)*10+.5):s=int((rnd(1)*15+7)*10+.5):l=int((rnd(1)*4+1)*10+.5):b=int(rnd(1)*20+.5):d=d+1:ac=int(((rnd(1)*3)+1)*-1)
£checkday {so I can check the day by itself}
if D >= 31 GOTO @endgame:return
ifD>=31goto@endgame:return
£scorecalculate
k=(w+e)-v:if k<0 THEN k=0 : return
k=int(sqr((k/31.5)+.5)):if k>100 then k=100
k=(w+e)-v:ifk<0thenk=0:return
k=int(sqr((k/31.5)+.5)):ifk>100thenk=100
return
£gamestart {set wallet, debt, location, inventory space, zero out inventory}
w=2000:e=0:v=5000:p$="The Bronx":g=0:i=100:m=0:n=0:o=0:u=0:t=0:q=0:gosub @daily:goto @titlebar
w=2000:e=0:v=5000:p$="The Bronx":g=0:i=100:m=0:n=0:o=0:u=0:t=0:q=0:gosub@daily:home:htab16:?"Drugwar//e":goto@menu
£menu {main menu. everything should loop back here}
gosub @home:gosub @freespace
inverse : vtab 2:htab 4:? "Day: "D : gosub @twoeighteen:?"Location: "p$ :normal
vtab4:? "(C)heck Prices":? "(T)renchcoat":? "(B)uy":? "(S)ell":? "(J)et":? "See (L)oan shark":? "(V)isit Bank":?
input "Please make your selection: ";x$
if x$ = "C" goto @prices
if x$ = "T" goto @inventory
if x$ = "B" goto @buy
if x$ = "S" goto @sell
if x$ = "J" goto @jet
if x$ = "L" goto @loan
if x$ = "V" goto @bank
goto @menu
gosub@home:gosub@freespace
inverse:vtab2:htab4:?"Day:"D:gosub@twoeighteen:?"Location:"p$:normal
vtab4:?"(C)heck Prices":?"(T)renchcoat":?"(B)uy":?"(S)ell":?"(J)et":?"See (L)oan shark":?"(V)isit Bank":?
input"Please make your selection:";x$
ifx$="C"goto@prices
ifx$="T"goto@inventory
ifx$="B"goto@buy
ifx$="S"goto@sell
ifx$="J"goto@jet
ifx$="L"goto@loan
ifx$="V"goto@bank
goto@menu
[
£debug
? "Testing Screen"
?"Testing Screen"
?
? "(w)allet,(g)uns,(v)debt,(e)savings,(i)nventory space"
input "What to change?";db$
input "To?";dx
if db$ = "w" then w=dx
if db$ = "g" then g=dx
if db$="v" then v=dx
if db$="e" then e=dx
if db$="i" then i=dx
goto @menu
?"(w)allet,(g)uns,(v)debt,(e)savings,(i)nventory space"
input"What to change?";db$
input"To?";dx
ifdb$="w"then w=dx
ifdb$="g"then g=dx
ifdb$="v"then v=dx
ifdb$="e"then e=dx
ifdb$="i"then i=dx
goto@menu
]
£prices
gosub @home
inverse:gosub @twoeighteen:?"Prices":normal
?:?"cocaine:","$"c
?"heroin:","$"h
?"acid:","$"a
?"weed:","$"z
?"speed:","$"s
?"ludes:","$"l
?"wallet:","$"w
gosub @wait
goto @menu
gosub@home
inverse:gosub@twoeighteen:?"Prices":normal
?:?"cocaine:","$"c:?"heroin:","$"h:?"acid:","$"a:?"weed:","$"z:?"speed:","$"s:?"ludes:","$"l:?"wallet:","$"w
gosub@wait:goto@menu
£inventory
gosub @home
gosub@home
inverse:gosub @twosixteen :?"Trenchcoat":normal
?:?"cocaine:",m
?"heroin:",n
?"acid:",o
?"weed:",u
?"speed:",t
?"ludes:",q
?"free space:",f
gosub @wait
goto @menu
inverse:gosub@twosixteen:?"Trenchcoat":normal
?:?"cocaine:",m:?"heroin:",n:?"acid:",o:?"weed:",u:?"speed:",t:?"ludes:",q:?"free space:",f
gosub@wait:goto@menu
£buy
gosub @home
gosub@home
inverse:gosub @twonineteen: ?"Buy":normal
?:?"What do you want to buy?":?
? "(C)ocaine"
? "(H)eroin"
? "(A)cid"
? "(W)eed"
? "(S)peed"
? "(L)udes"
input "Enter Selection: ";x$
if x$="c" goto @cokebuy
if x$="h" goto @herbuy
if x$="a" goto @acidbuy
if x$="w" goto @weedbuy
if x$="s" goto @spdbuy
if x$="l" goto @ludbuy
goto @menu
inverse:gosub@twonineteen:?"Buy":normal
?:?"What do you want to buy?":?:?"(C)ocaine":?"(H)eroin":?"(A)cid":?"(W)eed":?"(S)peed":?"(L)udes"
input"Enter Selection:";x$
ifx$="c"goto@cokebuy
ifx$="h"goto@herbuy
ifx$="a"goto@acidbuy
ifx$="w"goto@weedbuy
ifx$="s"goto@spdbuy
ifx$="l"goto@ludbuy
goto@menu
£sell
gosub @home
inverse: gosub @twoeighteen: ?"Sell":normal
?:? "What would you like to sell?":?
? "(C)ocaine"
? "(H)eroin"
? "(A)cid"
? "(W)eed"
? "(S)peed"
? "(L)udes"
gosub@home:inverse:gosub@twoeighteen:?"Sell":normal
?:?"What would you like to sell?":?:?"(C)ocaine":?"(H)eroin":?"(A)cid":?"(W)eed":?"(S)peed":?"(L)udes"
£sellsel
input "Enter Selection: (0 to cancel)";x$
if x$="c" goto @cokesell
if x$="h" goto @hersell
if x$="a" goto @acidsell
if x$="w" goto @weedsell
if x$="s" goto @spdsell
if x$="l" goto @ludsell
if x$="0" goto @menu
? "Invalid Selection!"
goto @sellsel
input"Enter Selection:(0 to cancel)";x$
ifx$="c"goto@cokesell
ifx$="h"goto@hersell
ifx$="a"goto@acidsell
ifx$="w"goto@weedsell
ifx$="s"goto@spdsell
ifx$="l"goto@ludsell
ifx$="0"goto@menu
?"Invalid Selection!":goto@sellsel
£jet
gosub @home
gosub @jetalthere
?
? "(B)ronx"
? "(G)hetto"
? "(C)entral Park
? "(M)anhattan"
? "Coney (I)sland"
? "Broo(K)lyn"
? "(O)ops...stay!"
input "Where to dude? ";x$
if x$="B" then y$ = "The Bronx" : GOTO @jetb {we can use strings}
if x$="G" then y$ = "The Ghetto" : GOTO @jetb
if x$="C" then y$ = "Central Park" : GOTO @jetb
if x$="M" then y$ = "Manhattan" : goto @jetb
if x$="I" then y$ = "Coney Island" : goto @jetb
if x$="K" then y$ = "Brooklyn" : goto @jetb
if x$="O" then goto @menu
{if x$="COPTEST" then b = 5 : goto @police}
goto @jet
gosub@home:gosub@jetalthere
?:?"(B)ronx":?"(G)hetto":?"(C)entral Park
?"(M)anhattan":?"Coney (I)sland":?"Broo(K)lyn":?"(O)ops...stay!":input"Where to dude?";x$
ifx$="B"then y$="The Bronx":goto@jetb {we can use strings}
ifx$="G"then y$="The Ghetto":goto@jetb
ifx$="C"then y$="Central Park":goto@jetb
ifx$="M"then y$="Manhattan":goto@jetb
ifx$="I"then y$ ="Coney Island":goto@jetb
ifx$="K"then y$="Brooklyn":goto@jetb
ifx$="O"thengoto@menu
{ifx$="COPTEST"then b=5:goto@police}
goto@jet
£jetb
{input "event: ";ev testing/debug}
if y$=p$ then goto @alreadythere {more advanced thatn Bronx only on TI}
p$ = y$ {it's valid, copy it and move along} : y$ = ""
goto @subway
{input"event:";ev testing/debug}
ify$=p$thengoto@alreadythere {more advanced than Bronx only on TI}
p$=y$ {it's valid, copy it and move along}:y$=""
goto@subway
£loan
gosub @home
inverse : gosub @twosixteen:? "Loan Shark":normal
?
gosub @bronxcheck
? "Your debt is: $";v
? "You have: $";w
?
input "(R)epay, (B)orrow, (L)eave: ";X$
If X$ = "R" THEN goto @payme
If X$ = "B" Then goto @borrow
If X$ = "L" then goto @Menu
goto @loan
gosub@home:inverse:gosub@twosixteen:?"Loan Shark":normal:?:gosub@bronxcheck:?"Your debt is:$";v:?"You have:$";w:?:input"(R)epay, (B)orrow, (L)eave:";X$
ifX$="R"THENgoto@payme
ifX$="B"Thengoto@borrow
ifX$="L"thengoto@Menu
goto@loan
£bank
gosub @home
inverse : gosub @twofifteen: ?"Bank O'Murica":normal
? : gosub @bronxcheck
? "Your balance: $";e
? "Your wallet: $";w:?
INPUT "(D)EPOSIT, (W)ITHDRAW, (L)EAVE: ";X$
if x$ = "d" then goto @deposit
if x$ = "w" then goto @mymoney
if x$ = "l" then goto @menu
if x$ = eg$ then goto @egg
goto @bank
gosub@home:inverse:gosub@twofifteen:?"Bank O'Murica":normal:?:gosub@bronxcheck:?"Your balance:$";e:?"Your wallet:$";w:?
input"(D)EPOSIT, (W)ITHDRAW, (L)EAVE:";X$
ifx$="d"thengoto@deposit
ifx$="w"thengoto@mymoney
ifx$="l"thengoto@menu
{ifx$=eg$thengoto@egg}
goto@bank
[
How buy works:
divide wallet by drug price - write to J
hand to subroutine, it handles buy logic
if pass subroutine-logic, return to actually complete
]
£cokebuy
gosub @home
inverse:gosub @twosixteen: ?"Buy Cocaine":normal
? :j=int(w/c) {calculate how many we can buy}
gosub @howmuchbuy
m=m+k : w=w-(c*k) {when the subroutine sends us back when the purchase is valid}
goto @menu
gosub@home:inverse:gosub@twosixteen:?"Buy Cocaine":normal:?:j=int(w/c):AC=0:gosub@howmuchbuy:m=m+k:w=w-(c*k):goto@menu
£herbuy
gosub @home
inverse:gosub @twosixteen: ?"Buy Heroin":normal
? : j=int(w/h)
gosub @howmuchbuy
n=n+k : w=w-(h*k)
goto @menu
gosub@home:inverse:gosub@twosixteen:?"Buy Heroin":normal:?:j=int(w/h):AC=0:gosub@howmuchbuy:n=n+k:w=w-(h*k):goto@menu
£acidbuy
gosub @home
inverse:gosub @twoseventeen:?"Buy Acid":normal
? : j=int(w/a)
gosub @howmuchbuy
o=o+k : w=w-(a*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Buy Acid":normal:?:j=int(w/a):gosub@howmuchbuy:o=o+k:w=w-(a*k):goto@menu
£weedbuy
gosub @home
inverse:gosub @twoseventeen: ?"Buy Weed":normal
? : j=int(w/z)
gosub @howmuchbuy
u=u+k : w=w-(z*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Buy Weed":normal:?:j=int(w/z):gosub@howmuchbuy:u=u+k:w=w-(z*k):goto@menu
£spdbuy
gosub @home
inverse:gosub @twoseventeen: ?"Buy Speed":normal
? : j=int(w/s)
gosub @howmuchbuy
t=t+k : w=w-(s*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Buy Speed":normal:?:j=int(w/s):gosub@howmuchbuy:t=t+k:w=w-(s*k):goto@menu
£ludbuy
gosub @home
inverse:gosub @twoseventeen: ?"Buy Ludes":normal
? : j=int(w/l)
gosub @howmuchbuy
q=q+k : w=w-(l*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Buy Ludes":normal:?:j=int(w/l):gosub@howmuchbuy:q=q+k:w=w-(l*k):goto@menu
[
How sell works:
write inventory to J
run subroutine with logic
if pass subroutine, adjust wallet and inventory
]
£cokesell
gosub @home
inverse:gosub @twofifteen:?"Sell Cocaine":normal
? : j=m {write amount to variable}
gosub @howmuchsell {some buy logic}
m=m-k : w=w+(c*k)
goto @menu
gosub@home:inverse:gosub@twofifteen:?"Sell Cocaine":normal:?:j=m:gosub@howmuchsell:m=m-k:w=w+(c*k):goto@menu
£hersell
gosub @home
inverse:gosub @twoseventeen:?"Sell Heroin":normal
?:j=n
gosub @howmuchsell
n=n-k:w=w+(h*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Sell Heroin":normal:?:j=n:gosub@howmuchsell:n=n-k:w=w+(h*k):goto@menu
£acidsell
gosub @home
inverse:gosub @twoseventeen: ?"Sell Acid":normal
?:j=o
gosub @howmuchsell
o=o-k:w=w+(a*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Sell Acid":normal:?:j=o:gosub@howmuchsell:o=o-k:w=w+(a*k):goto@menu
£weedsell
gosub @home
inverse:gosub @twoseventeen:?"Sell Weed":normal
?:j=u
gosub @howmuchsell
u=u-k:w=w+(z*k)
goto @menu
gosub@home:inverse:gosub@twoseventeen:?"Sell Weed":normal:?:j=u:gosub@howmuchsell:u=u-k:w=w+(z*k):goto@menu
£spdsell
gosub @home
inverse:gosub @twosixteen:?"Sell Speed":normal
?:j=t
gosub @howmuchsell
t=t-k:w=w+(s*k)
goto @menu
gosub@home:inverse:gosub@twosixteen:?"Sell Speed":normal:?:j=t:gosub@howmuchsell:t=t-k:w=w+(s*k):goto@menu
£ludsell
gosub @home
inverse:gosub @twosixteen:?"Sell Ludes":normal
?:j=q
gosub @howmuchsell
q=q-k:w=w+(l*k)
goto @menu
gosub@home:inverse:gosub@twosixteen:?"Sell Ludes":normal:?:j=q:gosub@howmuchsell:q=q-k:w=w+(l*k):goto@menu
£alreadythere
gosub @home
gosub @jetalthere
?
? "You're already in:"
? " ";p$
gosub @timerc
goto @jet
gosub@home:gosub@jetalthere:?:?"You're already in:":htab15:? p$:gosub@timerc:goto@jet
£subway
gosub @home:gosub @daily:V=int(V*1.1+.5):E=int(E*1.06+.5) :inverse:gosub @twoeighteen:?"Subway":normal:?:?
if b=1 then goto @cheapludes
if b=2 then goto @cheepweed
if b=3 then goto @pigheroin
if b=4 then goto @heroinbust
if b=5 then goto @heroinbust
if b=6 then goto @cokebust
if b=7 then goto @cokebust
if b=8 then goto @mugged
if b=9 then goto @cops
if b=10 then goto @cops
if b=11 then goto @cops
if b=12 then goto @gunbuy
if b=13 then goto @gunbuy
if b=14 then goto @dedweed
if b=15 then goto @newcoat
if b=16 then goto @dedguy
if b=17 then goto @homeacid
gosub@home:gosub@daily:V=int(V*1.1+.5):E=int(E*1.06+.5):inverse:gosub@twoeighteen:?"Subway":normal:?:?
ifb=1thengoto@cheapludes
ifb=2thengoto@cheepweed
ifb=3thengoto@pigheroin
ifb=4thengoto@heroinbust
ifb=5thengoto@heroinbust
ifb=6thengoto@cokebust
ifb=7thengoto@cokebust
ifb=8thengoto@mugged
ifb=9thengoto@cops
ifb=10thengoto@cops
ifb=11thengoto@cops
ifb=12thengoto@gunbuy
ifb=13thengoto@gunbuy
ifb=14thengoto@dedweed
ifb=15thengoto@newcoat
ifb=16thengoto@dedguy
ifb=17thengoto@homeacid
£nothinghappened
£nothinghappens
?:? "Welcome to ";p$:?:gosub @timerc:goto @menu
?:?"Welcome to ";p$:?:gosub@timerc:goto@menu
£cheapludes
? "Rival dealers are selling cheap ludes!":l=2:gosub @timerc:goto @menu
?"Rival dealers are selling cheap ludes!":l=2:gosub@timerc:goto@menu
£cheepweed
? "Weed prices have bottomed-out!":z=122:gosub @timerc:goto @menu
?"Weed prices have bottomed-out!":z=122:gosub@timerc:goto@menu
£pigheroin
? "Pigs are selling cheap heroin":? "from last week's raid!":h=int((rnd(9)*1150)+850.5):gosub @timerc:goto @menu
?"Pigs are selling cheap heroin":?"from last week's raid!":h=int((rnd(1)*1150)+850.5):gosub@timerc:goto@menu
£heroinbust
? "Addicts are buying heroin":? "at outrageous prices!":h=int((rnd(9)*25000)+18000.5):gosub @timerc:goto @menu
?"Addicts are buying heroin":?"at outrageous prices!":h=int((rnd(1)*25000)+18000.5):gosub@timerc:goto@menu
£cokebust
? "Pigs made a big coke bust!":? "Prices are outrageous!!!!":c=int((rnd(9)*60000)+80000.5):gosub @timerc:goto @menu
?"Pigs made a big coke bust!":?"Prices are outrageous!!!!":c=int((rnd(1)*60000)+80000.5):gosub@timerc:goto@menu
£mugged
? "You got mugged!":?:j=int((w/3)*2):? "You lost $";w-j:w=w-j:gosub @timerc:goto @menu
?"You got mugged!":?:j=int((w/3)*2):?"You lost $";w-j:w=w-j:gosub@timerc:goto@menu
£cops
k=m+n+u+o+t+p:if k<50 then goto @nothinghappened
if b=9 then b = 2
if b=10 then b=4
if b=11 then b=5
? "It's the cops!":?:? "Officer Hardass and ";B-1;" of his":? "deputies are after you!":?:gosub @timerc:goto @police
gosub@freespace:iff<i/2thengoto@nothinghappened
ifb=9thenb=2
ifb=10thenb=4
ifb=11thenb=5
?"It's the cops!":?:?"Officer Hardass and ";B-1;"of his":?"deputies are after you!":?:gosub@timerc:goto@police
£police
gosub @home:gosub @chase:?:? :? "View (G)uns":? "View (D)amage":? "(N)umber of pigs":? "(R)un":? "(F)ight":?
input "What do you want to do? ";x$
if x$="G" goto @pgun
if x$ = "D" goto @damage
if x$ = "N" goto @ncops
if x$ = "R" goto @run
if X$="F" goto @fight
goto @police
gosub@home:gosub@chase:?:?:?"View (G)uns":?"View (D)amage":?"(N)umber of pigs":?"(R)un":?"(F)ight":?
input"What do you want to do?";x$
ifx$="G"goto@pgun
ifx$="D"goto@damage
ifx$="N"goto@ncops
ifx$="R"goto@run
ifX$="F"goto@fight
goto@police
£pgun
gosub @home:gosub @chase:?:? :? "You have ";g;" guns.:?:gosub @wait:goto @police
gosub@home:gosub@chase:?:?:?"You have ";g;"guns.:?:gosub@wait:goto@police
£damage
gosub @home:gosub @chase:?:? :? "Your health is ";bb;".":?:? "0 and you die!":?:gosub @wait:goto @police
gosub@home:gosub@chase:?:?:?"Your health is ";bb;".":?:?"0 and you die!":?:gosub@wait:goto@police
£ncops
gosub @home:gosub @chase:?:?:? "There are ";b;" pigs still chasing you!":?:?:gosub @wait:goto @police
gosub@home:gosub@chase:?:?:?"There are ";b;"pigs still chasing you!":?:?:gosub@wait:goto@police
£run
gosub @home:gosub @chase:?:?:? "RUNNING...":gosub @timera:if k = 0 then ? "You lost them in an alley!" : goto @loserun
? "You can't shake them!":?:gosub @wait:goto @police
£loserun
?:gosub @wait:goto @menu
gosub@home:gosub@chase:?:?:?"RUNNING...":gosub@timera:ifk=0then?"You lost them in an alley!":gosub@timerc:goto@menu
?"You can't shake them!":?:goto@next
£fight
if g<=0 then ? : ? : ? "YOU DON'T HAVE ANY GUNS!" : gosub @wait : goto @police
gosub @home:gosub @chase
?:? "You shoot!":gosub @timera:If K=0 THEN GOTO @miss
? "You got one!" : b = b-1 : goto @next
ifg<=0then?:?:?"YOU DON'T HAVE ANY GUNS!":gosub@wait:goto@police
gosub@home:gosub@chase
?:?"You shoot!":gosub@timera:ifK=0thengoto@miss
?"You got one!":b=b-1: goto@next
£miss
? "You missed!"
?"You missed!"
£next
?:?:If b <= 0 THEN goto @allgone
gosub @timerb:? "They're firing at you!":gosub @timera:if k=0 then goto @theymiss
? "You've been hit!":bb=bb-6:if bb >= 0 goto @ded
goto @nexta
?:?:ifb<=0thengoto@allgone
gosub@timerb:?"They're firing at you!":gosub@timera:ifk=0thengoto@theymiss
?"You've been hit!":bb=bb-6:ifbb>=0goto@ded
goto@nexta
£theymiss
? "They missed!"
?"They missed!"
£nexta
gosub @timera:goto @police
gosub@timera:goto@police
£ded
?:? "You've been killed!":gosub @wait:goto @endgame
?:?"You've been killed!":gosub@wait:goto@endgame
£allgone
? "You killed all of them!":?:gosub @timera
j=int(((rnd(7)*1250)+750)+.5):w=w+j
? "You found $";j;" on officer Hardass'"
? "carcass!"
if w>=1200 then goto @doctor
goto @menu
?"You killed all of them!":?:gosub@timera
j=int(((rnd(1)*1250)+750)+.5):w=w+j
?"You found $";j;"on officer Hardass'"
?"carcass!"
ifw>=1200thengoto@doctor
goto@menu
£doctor
gosub @timerc
?:? "Will you pay $1000 for a doctor"
input "to sew you up? (Y/N)";x$
if X$ <> "Y" then goto @menu
w=w-1000:bb=100:goto @menu
gosub@timerc:?:?"Will you pay $1000 for a doctor":input"to sew you up? (Y/N)";x$
ifX$<>"Y"thengoto@menu
w=w-1000:bb=100:goto@menu
£gunbuy
if w < 500 THEN goto @nothinghappened:gosub @freespace:if f < 5 THEN goto @nothinghappened
j=int((rnd(4)*2)+.5)
if j = 0 then y$ = "Baretta"
if j = 1 then y$ = "Saturday Night Special"
if j = 2 then y$ = ".44 Magnum"
? "Will you buy a ";y$:input "for $400? (Y/N)";x$:if x$ <> "Y" then goto @menu
g = g+1:w = w-400:goto @menu
ifw<500thengoto@nothinghappened:gosub@freespace:iff<5thengoto@nothinghappened
j=int((rnd(1)*2)+.5)
ifj=0theny$="Baretta"
ifj=1theny$="Saturday Night Special"
ifj=2theny$=".44 Magnum"
?"Will you buy a ";y$:input"for $400? (Y/N)";x$:ifx$<>"Y"thengoto@menu
g=g+1:w=w-400:goto@menu
£dedweed {don't smoke the weed}
? "There's some weed here that smells":? "like good stuff!!":?
input "Will you smoke it? (Y/N)";X$
If X$ = "Y" THEN GOTO @weedend
?"There's some weed here that smells":?"like good stuff!!":?:input"Will you smoke it? (Y/N)";X$
ifX$="Y"THENgoto@weedend
goto@menu
£newcoat
if w<300 then goto @nothinghappens {only if you can afford it}
? "Will you buy a new trenchcoat":input "with more pockets for $200? (Y/N)";X$
if X$ <> "Y" then goto @menu
i=i+10:w=w-200:goto @menu
ifw<300thengoto@nothinghappens
?"Will you buy a new trenchcoat":input"with more pockets for $200? (Y/N)";X$
ifX$<>"Y"thengoto@menu
i=i+10:w=w-200:goto@menu
£dedguy
gosub @freespace
If f<8 THEN goto @nothinghappens {only if you have enough freespace}
j=int((rnd(3)*7)+1.5):k=int(rnd(3)*5+.5)
if k=0 THEN q=q+j : y$ = "Ludes"
if k=1 THEN t=t+j : y$ = "Speed"
if k=2 THEN u=u+j : y$ = "Weed"
if k=3 THEN o=o+j : y$ = "Acid"
if k=4 THEN n=n+j : y$ = "Heroin"
if k=5 THEN m=m+j : y$ = "Coke"
? "You found "j" units of "Y$:? "on a dead dude in the subway!":?:gosub @timerc:goto @menu
gosub@freespace
iff<8thengoto@nothinghappens
j=int((rnd(1)*7)+1.5):k=int(rnd(1)*5+.5)
ifk=0thenq=q+j:y$="Ludes"
ifk=1thent=t+j:y$="Speed"
ifk=2thenu=u+j:y$="Weed"
ifk=3theno=o+j:y$="Acid"
ifk=4thenn=n+j:y$="Heroin"
ifk=5thenm=m+j:y$="Coke"
?"You found "j"units of "Y$:?"on a dead dude in the subway!":?:gosub@timerc:goto@menu
£homeacid
? "The market has been flooded"
? "with cheap home-made acid!"
a=int((rnd(4)*550)+250.5)
gosub @timerc:goto @menu
?"The market has been flooded":?"with cheap home-made acid!":a=int((rnd(1)*550)+250.5):gosub@timerc:goto@menu
£payme
INPUT "Repay how much? ";k
IF k>w THEN ?:? "YOU DON'T HAVE THAT MUCH!" : GOSUB @timerb : GOTO @LOAN
IF k>v THEN ?:? "YOU DON'T OWE THAT MUCH!" : GOSUB @timerb : GOTO @LOAN
W=W-k : v=v-k
?:? "THANK YOU."
GOSUB @timerc:GOTO @MENU
input"Repay how much?";k:ifk=0then?"Get out of here, loser!":gosub@timerb:goto@menu
ifk>wthen?:?"YOU DON'T HAVE THAT MUCH!":gosub@timerb:goto@LOAN
ifk>vthen?:?"YOU DON'T OWE THAT MUCH!":gosub@timerb:goto@LOAN
W=W-k:v=v-k:?:?"THANK YOU.":gosub@timerc:goto@MENU
£borrow
?
Input "How much do you want? ";K
? : j=int((rnd(10)*10000)+4000)
if K>14000 then ? "He's not that stupid!" : gosub @timerc : goto @menu
if K > J then ? "He doesn't feel like it." : gosub @timerb : goto @menu
v=v+k : w=w+k
?:? "Here's your money." : ? : ? "Remember, I break thumbs."
gosub @timerc:goto @menu
?:j=int((rnd(1)*10000)+4000):input"How much do you want?";K:?:ifk=0goto@menu
ifk<0then?"Trying to cheat? Double debt!":AD=ad+3:v=v*2:gosub@timerC:gosub@cheater:goto@menu
ifK>14000then?"He's not that stupid!":gosub@timerc:goto@menu
ifK>Jthen?"He doesn't feel like it.":gosub@timerb:goto@menu
v=v+k:w=w+k:?:?"Here's your money.":?:?"Remember, I break thumbs.":gosub@timerc:goto@menu
£deposit
?
INPUT "How much? ";j
If j>w then ? "You don't have that much cash." : goto @deposit
e=e+j:w=w-j
?:? "Thank you for your deposit."
gosub @timerc:goto @menu
?:k=int((rnd(1)*100)+1):input"How much?";j:ifj=0goto@menu
ifj>wthen?"You don't have that much cash.":goto@deposit
ifk=2thengoto@chaching
ifj<0then?"You tried to rob the bank, but barely":?"made it out with nothing.":ad=ad+3:gosub@timerC:goto@menu
£chaching
e=e+j:w=w-j:?:?"Thank you for your deposit.":gosub@timerc:goto@menu
[
£egg
? "You found the easter egg!"
?"You found the easter egg!"
?
? "$1,000,000 has been deposited in to your account."
gosub @timerc
goto @bank
?"$1,000,000 has been deposited in to your account."
gosub@timerc
goto@bank
]
£mymoney
?
INPUT "How much? ";j
If j>e then ? "You don't have sufficient funds." : goto @mymoney
e=e-j:w=w+j
?:? "Thank you for your business."
gosub @timerc:goto @menu
?:input"How much?";j
ifj<0then?"Try making a deposit.":gosub@timerc:goto@bank
ifj>ethen?"You don't have sufficient funds.":goto@mymoney
e=e-j:w=w+j:?:?"Thank you for your business.":gosub@timerc:goto@menu
£instructions
home:vtab 2:htab10:? "Welcome to Drugwar//e":htab14:?"Version ";rv
vtab 8:htab 3:? "Based on the classic TI-BASIC clone":htab 2:? "of John E. Dell's 1984 IBM/TRS80 game."
vtab 12:htab 6:? "Applesoft version by: Jay Moore":vtab 19:input "Would you like instructions? (Y/N): ";X$
j =RND(-1 *(PEEK(78)+256*PEEK(79))):If X$ = "Y" THEN GOTO @inst
GOTO @gamestart
home:vtab2:htab10:?"Welcome to Drugwar//e":htab14:?"Version ";rv:vtab8:htab3:?"Based on the classic TI-BASIC clone":htab2:?"of John E. Dell's 1984 IBM/TRS80 game.":vtab12:htab6:?"Applesoft version by:Jay Moore"
vtab19:input"Would you like instructions? (Y/N):";X$:j =RND(-1 *(PEEK(78)+256*PEEK(79))):ifX$="Y"THENgoto@inst
goto@gamestart
£inst
home
?
? "This is a game of buying and selling."
? "Your goal is to pay off your debt and"
? "make as much money as possible in a one"
? "month period. Prices fluctuate every dayand interest on your loan is calculated as well."
?:? "If you deal too heavily, you'll attract the attention of the police."
?
? "Commands are entered using the letter highlighted (L)ike (S)o. Y is yes and anything counts as no."
gosub @wait
goto @gamestart
home:?:?"This is a game of buying and selling.":?"Your goal is to pay off your debt and":?"make as much money as possible in a one":?"month period. Prices fluctuate every dayand interest on your loan is calculated as well."
?:?"If you deal too heavily, you'll attract the attention of the police.":?:?"Commands are entered using the letter highlighted (L)ike (S)o. Y is yes and anything counts as no.":gosub@wait:goto@gamestart
£threestrikes {if you try to cheat three times and get caught; your ass gets booted out of the game.}
home:htab8:vtab10:?"Put a quarter in your ass":gosub@timerb:htab7:?"'Cause you played yourself!":gosub@timerc:gosub@timerc:vtab19:htab11:?"Don't cheat so much.":gosub@timerc:gosub@timerc:gosub@timerc:clear:end
£weedend
gosub @home
inverse : gosub @twofifteen: ? "SMOKE Weed" : NORMAL
speed = 50 :? "You hallucinate on the wildest trip"
? "of your life, stumble on to the tracks,"
? "and get creamed by a train!"
?
?
htab 10:? "Just say NO to drugs!":speed=255
gosub @timerc
gosub @timerb
goto @ironicend
gosub@home:inverse:gosub@twofifteen:?"SMOKE Weed":NORMAL:speed=50:?"You hallucinate on the wildest trip":?"of your life, stumble on to the tracks,":?"and get creamed by a train!":?:?
htab10:?"Just say NO to drugs!":speed=255:gosub@timerc:gosub@timerb:goto@ironicend
£endgame
gosub @home
gosub @scorecalculate
gosub @gmod
?
? "Your score on a scale of 1 to 100: ";k
?
input "Would you like to play again? (Y/N)";x$
if x$ = "Y" then goto @gamestart
? "Thanks for playing."
? "Remember, watch your back."
? "Have a nice day!"
clear
end
gosub@home:gosub@scorecalculate:gosub@gmod:?:?"Your score on a scale of 1 to 100:";k:?
input"Would you like to play again? (Y/N)";x$:ifx$="Y"thengoto@gamestart
?"Thanks for playing.":?"Remember, watch your back.":?"Have a nice day!":clear:end
£ironicend
gosub @home
gosub@home:gosub@gmod:?:speed=50:?"You died from smoking weed.":?:?:gosub@timerc:?"See? Games are totally fake.":speed=255:?:input"Would you like to play again?";x$:ifx$= "Y"THENgoto@GAMESTART
clear:end
rem Drugwar//e - Version 1.05
rem 5-NOV-2018
rem Copyright 2018 Jay Moore
rem gitlab.com/dewdude/drugwar2e
rem twitter:_nq4t
gosub @gmod
?
speed = 50 : ? "You died from smoking weed."
?:?:gosub @timerc: ?"See? Games are totally fake." : speed = 255:?
input "Would you like to play again? ";x$
if x$= "Y" THEN GOTO @GAMESTART
clear
end

@ -1,674 +1,9 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright 2018 Jay Moore
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Preamble
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Drugwar2e
Copyright (C) 2018 Jay Moore
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Drugwar2e Copyright (C) 2018 Jay Moore
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

@ -1,3 +1,4 @@
```
_____ _____ _ _ _______ __ _____ ____
| __ \| __ \| | | |/ ____\ \ / /\ | __ \ / / /
| | | | |__) | | | | | __ \ \ /\ / / \ | |__) | / / /__
@ -10,6 +11,8 @@
Copyright 2018 Jay Moore - A FOSS Game
http://gitlab.com/dewdude/drugwar2e
http://gitlab.com/dewdude/drugwar64
Contents:
About
@ -17,7 +20,7 @@ Instructions
Files
Updates
Support
```
About:
@ -82,9 +85,11 @@ Files:
Your DRUGWAR2E.ZIP package contains the following file:
DRUGWAR2E.DSK - Drugwar//e DOS 3.3 Disk Image
drugwar2ev104.bas - Applesoft BASIC code
drugwar2ev104.baz - Virtual Applesoft BASIC code
README.txt - This readme file
drugwar2e.bas - Applesoft BASIC code
drugwar2e.baz - Virtual Applesoft BASIC code
README.md - This readme file
LICENSE - FreeBSD 2-Clause Simplified LICENSE
CHANGELOG - Detailed changelog
These files are also available indvidually on the project page.
@ -92,6 +97,16 @@ These files are also available indvidually on the project page.
Updates
5-NOV-2018: Version 1.05
First all GitLab release - No more Sourceforge!
Condensed Code Even More!!!
First releases were over 700, last one was around 450. This one is under 300!!!!!
Closed the big gaping cheat hole.
Special "anti-cheat" system that lets you cheat a little
Changed how cops react to inventory.
Cops now shoot when you run.
29-OCT-2018: Version 1.04
Added the missing goto after using the doctor. I don't know how I missed that.

Binary file not shown.
Loading…
Cancel
Save