/* * Copyright (c) 2021 Ross Cunniff * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /* *** Intrinsic Properties *** */ public SHRNK, // Has it been shrunk? CRYST, // Is it one of our magic thingies? KILLED, // Is the dragon dead? HOLED, // Made a hole in the ice? RDLOC, // Location on Highway 7 WEIGH, HOLDS, HAS, POINT, Loc21; // Location in river bed /* Constants */ const CAPAC = 250; // More than I can carry const PMAX = 400; // Maximum number of points const GMAX = 250; // Number of points needed for a free gift const BEND1LOC = 3; // Location of first bend in river bed const BEND2LOC = 6; // Location of second bend in river bed const GRATELOC = 11; // Location of grate in river bed const Shazm = "ShaZam"; // The Wizard's incantation /* Globals */ var HWY7 = 0, // My location on highway 7 RiverLoc = 0, // My location in river bed SCORE = 0, // My current score Tempr = 0, // Dragon's Upset? Cel6x = 0, // Where he came from to enter Cel06 Wizrd = 0, // Wizardly Ability GO = 0, // Did the player move on this turn? GOVERB = 0, // Was the player's verb one of motion (n,s,e,w,etc.)? APPEAR = 0, // Is this the first thing dropped in the Bank? Given = 0, // Has the gift been given? NumDie = 0, // Number of times I've died IncFlag = true; // Should the turn counter be incremented? proc PROMPT, LOOK, GrowX, Grow, ShrnX, Shrink, WzTgl, Dump7, Get7, Entr7, East7, West7, CRout, DRdem, TWN5y, cg, Sayer, ShowScore;