throw.txt
snippets · 1.6 KB · 2010-03-30
Throw: a throw command (1998 post by Jacob Masters).
Download « Back to the snippets list
From lobo-koder@mailcity.com Thu Apr 2 15:50:58 1998
Date: Fri, 06 Feb 1998 10:53:41 -0700
From: Jacob Masters <lobo-koder@mailcity.com>
To: rom@rom.org
Subject: Adding Item Thow types
Resent-Date: Fri, 6 Feb 1998 10:55:10 -0800 (PST)
Resent-From: rom@rom.org
Yet another page from my soon to be released how to
code book :)
merc.h
/*
* Item types.
* Used in #OBJECTS.
*/
#define ITEM_THROWING # (next consecutive)
------------------------------------------------------
const.c:
const struct item_type item_table [] =
{ ITEM_THROWING, "throwing" },
------------------------------------------------------
handler.c:
char *item_type_name( OBJ_DATA *obj )
case ITEM_THROWING: return "throwing";
-----------------------------------------------------
db2.c
void load_objects( FILE *fp )
case ITEM_THROWING:
pObjIndex->value[0] = fread_number(fp);
pObjIndex->value[1] = fread_number(fp);
pObjIndex->value[2] = attack_lookup(fread_word(fp));
pObjIndex->value[3] = fread_number(fp);
pObjIndex->value[4] = skill_lookup(fread_word(fp));
break;
Lobo
talkers.skl.com 4000
http://www.geocities.com/TimesSquare/Fortress/1800/
Free web-based e-mail, Forever, From anywhere!
http://www.mailcity.com
---
ROM Mailing List -- To unsubscribe mail "unsubscribe" to rom-request@rom.org
For help with SmartList features mail "help" to rom-request@rom.org