#include "hack.h"
Data Structures | |
struct | Jitem |
struct | o_range |
struct | alt_spellings |
Defines | |
#define | PREFIX 80 |
#define | SCHAR_LIM 127 |
#define | NUMOBUF 12 |
#define | GemStone(typ) |
#define | BSTRCMP(base, ptr, string) ((ptr) < base || strcmp((ptr),string)) |
#define | BSTRCMPI(base, ptr, string) ((ptr) < base || strcmpi((ptr),string)) |
#define | BSTRNCMP(base, ptr, string, num) ((ptr)<base || strncmp((ptr),string,num)) |
#define | BSTRNCMPI(base, ptr, string, num) ((ptr)<base||strncmpi((ptr),string,num)) |
#define | UNDEFINED 0 |
#define | EMPTY 1 |
#define | SPINACH 2 |
Functions | |
STATIC_DCL char * | FDECL (strprepend,(char *, const char *)) |
static boolean | FDECL (wishymatch,(const char *, const char *, BOOLEAN_P)) |
static char * | NDECL (nextobuf) |
static void | FDECL (add_erosion_words,(struct obj *, char *)) |
STATIC_DCL const char * | FDECL (Japanese_item_name,(int i)) |
STATIC_OVL char * | strprepend (char *s, const char *pref) |
static char * | nextobuf () |
char * | obj_typename (int otyp) |
char * | simple_typename (int otyp) |
boolean | obj_is_pname (struct obj *obj) |
char * | distant_name (struct obj *obj, func) |
char * | fruitname (boolean juice) |
char * | xname (struct obj *obj) |
char * | mshot_xname (struct obj *obj) |
boolean | the_unique_obj (struct obj *obj) |
static void | add_erosion_words (struct obj *obj, char *prefix) |
static char * | doname_base (struct obj *obj, boolean with_price) |
char * | doname (struct obj *obj) |
char * | doname_with_price (struct obj *obj) |
boolean | not_fully_identified (struct obj *otmp) |
char * | corpse_xname (struct obj *otmp, boolean ignore_oquan) |
char * | cxname (struct obj *obj) |
char * | killer_xname (struct obj *obj) |
const char * | singular (struct obj *otmp, func) |
char * | an (const char *str) |
char * | An (char *str) const |
char * | the (char *str) const |
char * | The (char *str) const |
char * | aobjnam (struct obj *otmp, const char *verb) |
char * | Tobjnam (struct obj *otmp, const char *verb) |
char * | otense (struct obj *otmp, const char *verb) |
char * | vtense (const char *subj, const char *verb) |
char * | Doname2 (struct obj *obj) |
char * | yname (struct obj *obj) |
char * | Yname2 (struct obj *obj) |
char * | ysimple_name (struct obj *obj) |
char * | Ysimple_name2 (struct obj *obj) |
char * | makeplural (char *oldstr) const |
char * | makesingular (char *oldstr) const |
static boolean | wishymatch (char *u_str, const char *o_str, boolean retry_inverted) const |
struct obj * | readobjnam (char *bp, struct obj *no_wish, boolean from_user) |
int | rnd_class (int first, int last) |
STATIC_OVL const char * | Japanese_item_name (int i) |
const char * | cloak_simple_name (struct obj *cloak) |
const char * | mimic_obj_name (struct monst *mtmp) |
Variables | |
STATIC_OVL struct Jitem | Japanese_items [] |
static const char *const | special_subjs [] |
static const char * | wrp [] |
static const char | wrpsym [] |
STATIC_OVL NEARDATA struct o_range | o_ranges [] |
struct alt_spellings | spellings [] |
#define BSTRCMP | ( | base, | |
ptr, | |||
string | |||
) | ((ptr) < base || strcmp((ptr),string)) |
Referenced by makesingular(), and readobjnam().
#define BSTRCMPI | ( | base, | |
ptr, | |||
string | |||
) | ((ptr) < base || strcmpi((ptr),string)) |
Referenced by makesingular(), and readobjnam().
#define BSTRNCMP | ( | base, | |
ptr, | |||
string, | |||
num | |||
) | ((ptr)<base || strncmp((ptr),string,num)) |
Referenced by makesingular().
#define BSTRNCMPI | ( | base, | |
ptr, | |||
string, | |||
num | |||
) | ((ptr)<base||strncmpi((ptr),string,num)) |
Referenced by makesingular().
#define EMPTY 1 |
Referenced by readobjnam().
#define GemStone | ( | typ ) |
(typ == FLINT || \ (objects[typ].oc_material == GEMSTONE && \ (typ != DILITHIUM_CRYSTAL && typ != RUBY && \ typ != DIAMOND && typ != SAPPHIRE && \ typ != BLACK_OPAL && \ typ != EMERALD && typ != OPAL)))
Referenced by obj_typename(), and xname().
#define NUMOBUF 12 |
Referenced by nextobuf().
#define PREFIX 80 |
Referenced by aobjnam(), doname_base(), strprepend(), and xname().
#define SCHAR_LIM 127 |
Referenced by readobjnam().
#define SPINACH 2 |
Referenced by readobjnam().
#define UNDEFINED 0 |
Referenced by readobjnam().
static void add_erosion_words | ( | struct obj * | obj, |
char * | prefix | ||
) | [static] |
References CRYSKNIFE, is_corrodeable, is_damageable, is_flammable(), is_rustprone, and Strcat.
Referenced by doname_base().
char* an | ( | const char * | str ) |
References index, nextobuf(), Strcat, Strcpy, strncmpi(), and vowels.
Referenced by An(), attack_checks(), bhit(), burn_object(), can_twoweapon(), canwearobj(), cast_protection(), chest_shatter_msg(), convert_line(), cpostfx(), del_sokoprize(), do_look(), doaltarobj(), docall(), dochat(), doforce(), doidtrap(), doloot(), domonnoise(), done(), dosacrifice(), dotrap(), enlght_combatinc(), enlightenment(), feel_cockatrice(), fig_transform(), find_trap(), Gloves_off(), grow_up(), gulpum(), hatch_egg(), help_monster_out(), hitmu(), hmon_hitmon(), hmonas(), in_container(), kick_monster(), kick_object(), killer_xname(), lift_object(), look_here(), lookat(), mattacku(), mon_break_armor(), mon_to_stone(), mzapmsg(), on_msg(), out_container(), pick_lock(), pickup(), pickup_object(), pleased(), polymon(), precheck(), ready_weapon(), revive_corpse(), savebones(), see_lamp_flicker(), selftouch(), slime_dialogue(), thitu(), throw_obj(), thrwmu(), topten(), untrap(), use_tinning_kit(), use_whip(), x_monnam(), and you_were().
char* An | ( | char * | str ) | const |
Referenced by angrygods(), burn_floor_paper(), chest_shatter_msg(), convert_line(), create_camera_demon(), dokick(), hmon_hitmon(), melt_ice(), and readobjnam().
char* aobjnam | ( | struct obj * | otmp, |
const char * | verb | ||
) |
References bp, cxname(), otense(), PREFIX, Sprintf, Strcat, and strprepend().
Referenced by arti_invoke(), attack(), chwepon(), dip(), doapply(), dowrite(), drop_uswapwep(), engrave(), erode_obj(), find_roll_to_hit(), fix_worst_trouble(), get_wet(), grease_protect(), hitmu(), lava_effects(), litter(), makewish(), mrustm(), passive_obj(), pleased(), ready_weapon(), rndcurse(), seffects(), start_tin(), urustm(), and use_pick_axe2().
const char* cloak_simple_name | ( | struct obj * | cloak ) |
References ALCHEMY_SMOCK, MUMMY_WRAPPING, objects, and ROBE.
Referenced by break_armor(), burnarmor(), canwearobj(), destroy_arm(), dotrap(), equipname(), m_slips_free(), mintrap(), mon_break_armor(), select_off(), and u_slip_free().
References makeplural(), permonst::mname, mons, nambuf, nextobuf(), and Sprintf.
Referenced by cxname(), eatcorpse(), Gloves_off(), in_container(), kick_object(), out_container(), pickup_object(), revive_corpse(), rot_corpse(), singular(), and unturn_dead().
char* cxname | ( | struct obj * | obj ) |
References CORPSE, corpse_xname(), FALSE, and xname().
Referenced by aobjnam(), dip(), hmon_hitmon(), sellobj(), steal(), use_whip(), and yname().
char* distant_name | ( | struct obj * | obj, |
func | |||
) |
References Blinded.
Referenced by artifact_hit(), bhit(), burn_floor_paper(), buzz(), destroy_mitem(), dog_eat(), dog_invent(), dounpaid(), kick_object(), kickstr(), lookat(), m_dowear_type(), mdamagem(), mdrop_obj(), meatmetal(), meatobj(), mon_consume_unstone(), move_special(), mpickstuff(), ohitmon(), possibly_unwield(), and tactics().
char* doname | ( | struct obj * | obj ) |
Wrapper function for vanilla behaviour.
References doname_base(), and FALSE.
Referenced by addinv_core1(), askchain(), attack_checks(), carry_count(), container_contents(), dip(), display_cinventory(), display_pickinv(), doaltarobj(), doforce(), dog_eat(), dog_invent(), doloot(), Doname2(), dopayobj(), dosacrifice(), dounpaid(), drop(), drop_boulder_on_monster(), drop_boulder_on_player(), engrave(), floorfood(), hitmu(), in_container(), kickstr(), lift_object(), light_cocktail(), look_here(), loot_mon(), m_dowear_type(), mattacku(), mbag_item_gone(), mdamagem(), mdrop_obj(), meatmetal(), meatobj(), mon_consume_unstone(), mon_wield_item(), move_special(), mpickstuff(), mquaffmsg(), mreadmsg(), mzapmsg(), off_msg(), peek_at_iced_corpse_age(), pick_lock(), pickup(), possibly_unwield(), price_quote(), select_off(), sellobj(), shk_names_obj(), simple_look(), slip_or_trip(), steal(), steal_it(), stealamulet(), stealarm(), tactics(), thitm(), thitu(), trim_contents(), untrap(), use_defensive(), use_offensive(), use_tinning_kit(), use_whip(), wield_tool(), and xprname().
char* Doname2 | ( | struct obj * | obj ) |
References doname(), and highc().
Referenced by breakmsg(), doaltarobj(), dopayobj(), hitfloor(), kick_object(), mbag_item_gone(), and toss_up().
References add_erosion_words(), AMULET_CLASS, AMULET_OF_YENDOR, ARMOR_CLASS, BALL_CLASS, bimanual, body_part(), bp, BRASS_LANTERN, BURIED_TOO, CANDELABRUM_OF_INVOCATION, CHAIN_CLASS, COIN_CLASS, contained_cost(), CONTAINED_TOO, CORPSE, costly_spot(), currency(), drainlevel, EGG, eos(), FAKE_AMULET_OF_YENDOR, FALSE, FOOD_CLASS, G_UNIQ, permonst::geno, get_cost_of_shop_item(), get_obj_location(), HAND, Has_contents, iflags, in_rooms(), index, Is_candle, is_weptool, LEASH, LOW_PM, MAGIC_LAMP, MAIL, makeplural(), MEAT_RING, permonst::mname, mons, mrg_to_wielded, MV_KNOWS_EGG, mvitals::mvflags, obj_is_pname(), objects, objclass::oc_cost, OIL_LAMP, plur, PM_PRIEST, POT_OIL, POT_WATER, POTION_CLASS, PREFIX, RING_CLASS, Role_if, s_suffix(), SCR_MAIL, shop_keeper(), SHOPBASE, instance_flags::show_buc, sitoa(), Sprintf, stale_egg, STEED, Strcat, Strcpy, strncmpi(), strprepend(), the_unique_obj(), TOOL_CLASS, TRUE, you::twoweap, type_is_pname, u, unpaid_cost(), uskin, vowels, W_AMUL, W_ARMOR, W_BALL, W_QUIVER, W_RING, W_RINGL, W_RINGR, W_SWAPWEP, W_TOOL, W_WEP, WAND_CLASS, WEAPON_CLASS, wizard, and xname().
Referenced by doname(), and doname_with_price().
char* doname_with_price | ( | struct obj * | obj ) |
Name of object including price.
References doname_base(), and TRUE.
Referenced by look_here(), and query_objlist().
STATIC_DCL char* FDECL | ( | strprepend | , |
(char *, const char *) | |||
) |
static void FDECL | ( | add_erosion_words | , |
(struct obj *, char *) | |||
) | [static] |
static boolean FDECL | ( | wishymatch | , |
(const char *, const char *, BOOLEAN_P) | |||
) | [static] |
STATIC_DCL const char* FDECL | ( | Japanese_item_name | , |
(int i) | |||
) |
char* fruitname | ( | boolean | juice ) |
References makesingular(), nextobuf(), pl_fruit, Sprintf, and strstri().
Referenced by drinkfountain(), and peffects().
STATIC_OVL const char* Japanese_item_name | ( | int | i ) |
References Jitem::item, Japanese_items, and Jitem::name.
Referenced by obj_typename(), and xname().
char* killer_xname | ( | struct obj * | obj ) |
References an(), obj_is_pname(), objects, objclass::oc_uname, obj::onamelth, the(), and xname().
Referenced by m_throw(), and thitu().
char* makeplural | ( | char * | oldstr ) | const |
References eos(), index, letter(), nextobuf(), Strcpy, and vowels.
Referenced by at_your_feet(), attack(), breakobj(), buzz(), can_twoweapon(), canwearobj(), cast_cleric_spell(), chwepon(), convert_line(), corpse_xname(), damageum(), destroy_item(), dip(), do_class_genocide(), do_genocide(), dokick(), doname_base(), doputon(), dosacrifice(), dountrap(), dowatersnakes(), dowrite(), drop_uswapwep(), eatcorpse(), engrave(), enlightenment(), feel_cockatrice(), fix_worst_trouble(), float_up(), glibr(), Gloves_off(), gold_detect(), hatch_egg(), heal_legs(), help_monster_out(), hmon_hitmon(), inside_gas_cloud(), invault(), invocation_message(), jump(), kick_object(), list_genocided(), lookat(), m_move(), m_throw(), make_blinded(), make_hallucinated(), mattackm(), mattacku(), mdamagem(), mon_wield_item(), nohandglow(), opentin(), passivemm(), passiveum(), peffects(), potionbreathe(), propagate(), readobjnam(), ready_weapon(), seffects(), select_off(), setmangry(), shopdig(), slip_or_trip(), start_tin(), stealgold(), throwit(), trap_detect(), use_cream_pie(), use_defensive(), use_grease(), use_misc(), use_towel(), use_whip(), ustatusline(), weldmsg(), wield_tool(), xname(), and zap_updown().
char* makesingular | ( | char * | oldstr ) | const |
References bp, BSTRCMP, BSTRCMPI, BSTRNCMP, BSTRNCMPI, eos(), nextobuf(), Strcpy, strstri(), and WIZARD.
Referenced by checkfile(), do_class_genocide(), fruitname(), glibr(), and readobjnam().
const char* mimic_obj_name | ( | struct monst * | mtmp ) |
References GOLD_PIECE, M_AP_OBJECT, obj_descr, objects, objclass::oc_descr_idx, objdescr::oc_name, and STRANGE_OBJECT.
Referenced by invault(), and mattacku().
char* mshot_xname | ( | struct obj * | obj ) |
References BUFSZ, multishot::i, m_shot, multishot::n, multishot::o, ordin(), Sprintf, Strcpy, and xname().
Referenced by hmon_hitmon(), ohitmon(), thitu(), and tmiss().
static char* NDECL | ( | nextobuf | ) | [static] |
static char* nextobuf | ( | ) | [static] |
References BUFSZ, NEARDATA, and NUMOBUF.
Referenced by an(), corpse_xname(), fruitname(), makeplural(), makesingular(), obj_typename(), otense(), the(), vtense(), xname(), yname(), and ysimple_name().
References ARMOR_CLASS, BALL_CLASS, COIN_CLASS, FALSE, is_corrodeable, is_flammable(), is_rustprone, is_weptool, MAIL, objects, SCR_MAIL, TRUE, undiscovered_artifact(), and WEAPON_CLASS.
Referenced by allow_category(), askchain(), count_unidentified(), ggetobj(), identify_pack(), and menu_identify().
References objects.
Referenced by doname_base(), killer_xname(), on_msg(), thitu(), throwit(), thrwmu(), and xname().
char* obj_typename | ( | int | otyp ) |
References AMULET_CLASS, COIN_CLASS, eos(), GEM_CLASS, GemStone, Japanese_item_name(), MINERAL, nextobuf(), OBJ_DESCR, OBJ_NAME, objects, objclass::oc_class, objclass::oc_uname, PM_SAMURAI, POTION_CLASS, RING_CLASS, Role_if, SCROLL_CLASS, SPBOOK_CLASS, Sprintf, Strcat, Strcpy, and WAND_CLASS.
Referenced by dodiscovered(), and simple_typename().
char* otense | ( | struct obj * | otmp, |
const char * | verb | ||
) |
References is_plural, nextobuf(), Strcpy, and vtense().
Referenced by aobjnam(), arti_invoke(), can_twoweapon(), carry_count(), catch_lit(), chwepon(), dig(), dip(), doaltarobj(), dosacrifice(), engrave(), fire_damage(), flooreffects(), floorfood(), get_wet(), ghitm(), hmon_hitmon(), kick_object(), mbag_item_gone(), mon_wield_item(), moverock(), otransit_msg(), p_glow1(), p_glow2(), pickup_object(), pleased(), recharge(), rot_corpse(), seffects(), setmnotwielded(), snuff_lit(), stripspe(), tmiss(), Tobjnam(), use_lamp(), and weldmsg().
true if object has been found by its description name
true if object has been found by its actual name
References A_CHAOTIC, A_LAWFUL, A_NEUTRAL, A_NONE, obj::age, Align2amask, align_str(), ALTAR, AMULET_CLASS, AMULET_OF_YENDOR, An(), ARMOR_CLASS, ART_THIEFBANE, artifact_exists(), artifact_name(), attach_egg_hatch_timeout(), bases, begin_burn(), BELL, BELL_OF_OPENING, block_point(), body_part(), flag::botl, bp, BRASS_LANTERN, BSTRCMP, BSTRCMPI, BUFSZ, can_be_hatched(), Can_fall_thru(), CANDELABRUM_OF_INVOCATION, CHEST, permonst::cnutrit, consume_oeaten(), CORPSE, obj::corpsenm, CRYSKNIFE, current_fruit, curse(), dead_species(), def_char_to_objclass(), defsyms, del_engr_at(), delete_contents(), digit(), drainlevel, EGG, EMPTY, eos(), symdef::explanation, FAKE_AMULET_OF_YENDOR, FALSE, ffruit, fruit::fid, FIGURINE, dlevel_t::flags, flags, Flying, fruit::fname, FOOD_CLASS, FOUNTAIN, fuzzymatch(), G_NOCORPSE, G_UNIQ, GEM_CLASS, genus(), GOLD_PIECE, GOLD_SYM, GRAY_DRAGON_SCALE_MAIL, GRAY_DRAGON_SCALES, HAND, Has_contents, HEAVY_IRON_BALL, HOLE, if(), ILLOBJ_CLASS, IRON_CHAIN, IRON_SAFE, IRONBARS, is_ammo, Is_box, Is_candle, is_corrodeable, is_damageable, Is_dragon_armor, Is_dragon_scales, is_flammable(), is_human, is_missile, is_poisonable, is_quest_artifact(), is_rottable(), is_rustprone, is_weptool, Jitem::item, Japanese_items, kill_egg(), LARGE_BOX, LAST_GEM, lava_effects(), LAVAPOOL, level, Levitation, levl, LOW_PM, Luck, MAGIC_LAMP, MAIL, make_grave(), makeplural(), makesingular(), maketrap(), MAXOCLASSES, mkobj(), mksobj(), mons, MS_GUARDIAN, mungspaces(), mvitals::mvflags, Jitem::name, name, name_to_mon(), nartifact_exist(), newsym(), fruit::nextf, levelflags::nfountains, NO_TRAP, NON_PM, levelflags::nsinks, NUM_OBJECTS, obj::oartifact, alt_spellings::ob, obfree(), OBJ_DESCR, obj_extract_self(), OBJ_NAME, obj_stop_timers(), dlevel_t::objects, objects, objclass::oc_class, objclass::oc_nutrition, obj::oclass, o_range::oclass, obj::oeaten, OIL_LAMP, ONAME, oname(), otmp, obj::otyp, obj::owt, place_object(), pline(), plur, PM_GRAY_DRAGON, PM_LONG_WORM, PM_LONG_WORM_TAIL, PM_MAIL_DAEMON, PM_YELLOW_DRAGON, POOL, POT_OIL, POT_WATER, POTION_CLASS, obj::quan, rindex, RING_CLASS, rn2(), rnd(), rnd_class(), ROCK, ROCKTRAP, SCALE_MAIL, SCHAR_LIM, SCR_BLANK_PAPER, SCR_MAIL, SINK, SIZE, SKELETON_KEY, SLIME_MOLD, something, alt_spellings::sp, SPBOOK_CLASS, obj::spe, SPE_BLANK_PAPER, SPE_BOOK_OF_THE_DEAD, spellings, SPINACH, start_corpse_timeout(), STATUE, STATUE_HISTORIC, Strcat, strcmpi, Strcpy, strncmpi(), strstri(), TALLOW_CANDLE, THRONE, obj::timed, TIN, title_to_mon(), trap_to_defsym, TRAPDOOR, TRAPNUM, TREE, TRUE, u, you::uconduct, you::ugold, UNDEFINED, you::ux, you::uy, you::uz, VENOM_CLASS, verysmall, WAN_WISHING, WAND_CLASS, water_damage(), WAX_CANDLE, WEAPON_CLASS, weight(), u_conduct::wisharti, wishymatch(), wizard, WIZARD, YELLOW_DRAGON_SCALES, and zeroobj.
Referenced by makewish().
int rnd_class | ( | int | first, |
int | last | ||
) |
References objects, rn2(), and rnd().
Referenced by doapply(), dofindgem(), dokick(), m_initinv(), mk_mplayer(), mkbox_cnts(), pleased(), poly_obj(), and readobjnam().
char* simple_typename | ( | int | otyp ) |
References obj_typename(), objects, objclass::oc_uname, and strstri().
Referenced by askchain(), disp_artifact_discoveries(), do_oname(), dodip(), doforce(), doloot(), lift_object(), mimic_hit_msg(), pick_lock(), pickup(), untrap(), use_candle(), and ysimple_name().
const char* singular | ( | struct obj * | otmp, |
func | |||
) |
References CORPSE, corpse_xname(), otmp, TRUE, and xname().
Referenced by chest_shatter_msg(), doeat(), dog_eat(), doread(), food_xname(), fprefx(), hmon_hitmon(), mquaffmsg(), mreadmsg(), mswings(), mswingsm(), throw_obj(), thrwmu(), use_offensive(), and use_whip().
STATIC_OVL char* strprepend | ( | char * | s, |
const char * | pref | ||
) |
References PREFIX.
Referenced by aobjnam(), and doname_base().
char* The | ( | char * | str ) | const |
References highc(), and the().
Referenced by addtobill(), artifact_hit(), b_trapped(), backfire(), bagotricks(), bhit(), buzz(), container_contents(), destroy_item(), destroy_mitem(), dip(), do_improvisation(), doapply(), dowrite(), dozap(), engrave(), flooreffects(), get_wet(), gulpum(), hit(), hmon_hitmon(), in_container(), invocation_message(), its_dead(), kick_object(), makewish(), mimic_hit_msg(), miss(), moverock(), obj_timer_checks(), ready_weapon(), setmnotwielded(), throw_obj(), tmiss(), Tobjnam(), update_mon_intrinsics(), use_candelabrum(), and use_candle().
char* the | ( | char * | str ) | const |
References FALSE, index, lowc(), nextobuf(), rindex, Strcat, Strcpy, strncmpi(), strstri(), and TRUE.
Referenced by addtobill(), animate_statue(), arti_invoke(), askchain(), boulder_hits_pool(), carry_count(), chest_trap(), choke(), container_contents(), convert_arg(), dig(), dip(), do_improvisation(), do_look(), do_play_instrument(), dodip(), doeat(), dofiretrap(), doforce(), doloot(), dosit(), dotrap(), eatcorpse(), fire_damage(), food_xname(), forcelock(), hitmu(), hmon_hitmon(), in_container(), in_or_out_menu(), killer_xname(), litroom(), moverock(), nh_timeout(), ohitmon(), on_msg(), pick_lock(), poisoned(), select_off(), set_trap(), shkcatch(), tamedog(), The(), thitmonst(), thitu(), throwit(), thrwmu(), touch_artifact(), untrap(), use_bell(), use_candelabrum(), use_candle(), use_container(), use_cream_pie(), use_crystal_ball(), use_misc(), use_stone(), use_trap(), use_whip(), and water_damage().
References AMULET_OF_YENDOR, FAKE_AMULET_OF_YENDOR, FALSE, objects, and TRUE.
Referenced by artifact_score(), and doname_base().
char* Tobjnam | ( | struct obj * | otmp, |
const char * | verb | ||
) |
References bp, otense(), Strcat, The(), and xname().
Referenced by amulet(), Armor_off(), Armor_on(), arti_speak(), bhito(), chest_trap(), Cloak_on(), container_contents(), do_improvisation(), dowrite(), dozap(), edibility_prompts(), engrave(), Helmet_on(), in_container(), m_throw(), mon_wield_item(), moverock(), mpickobj(), potionhit(), ready_weapon(), recharge(), rndcurse(), scatter(), setuwep(), tamedog(), thitmonst(), throwit(), touch_artifact(), use_bell(), use_candelabrum(), use_container(), use_crystal_ball(), use_grease(), use_lamp(), use_stone(), and uwepgone().
char* vtense | ( | const char * | subj, |
const char * | verb | ||
) |
References index, nextobuf(), Strcat, strcmpi, Strcpy, strncmpi(), and vowels.
Referenced by at_your_feet(), break_armor(), E_phrase(), flooreffects(), ghitm(), grease_protect(), growl(), gulpmu(), hit(), hmon_hitmon(), Mb_hit(), miss(), otense(), rust_dmg(), use_candelabrum(), use_candle(), whimper(), and yelp().
static boolean wishymatch | ( | char * | u_str, |
const char * | o_str, | ||
boolean | retry_inverted | ||
) | const [static] |
References BUFSZ, eos(), FALSE, fuzzymatch(), strcmpi, Strcpy, strncmpi(), strstri(), TRUE, and wizard.
Referenced by readobjnam().
char* xname | ( | struct obj * | obj ) |
References AMULET_CLASS, AMULET_OF_YENDOR, ARMOR_CLASS, BALL_CLASS, Blind, cansee, CHAIN_CLASS, COIN_CLASS, CREAM_PIE, ELVEN_SHIELD, eos(), FAKE_AMULET_OF_YENDOR, ffruit, fruit::fid, FIGURINE, fruit::fname, FOOD_CLASS, G_UNIQ, GEM_CLASS, GemStone, permonst::geno, index, is_boots, is_cloak, Is_dragon_scales, is_gloves, is_helmet, is_poisonable, is_shield, Is_sokoprize, Japanese_item_name(), LENSES, makeplural(), MINERAL, permonst::mname, mons, fruit::nextf, nextobuf(), NON_PM, OBJ_DESCR, obj_is_pname(), OBJ_NAME, objects, objclass::oc_uname, objclass::oc_weight, ONAME, ORCISH_SHIELD, obj::otyp, piday(), PM_ARCHEOLOGIST, PM_PRIEST, PM_SAMURAI, POT_WATER, POTION_CLASS, PREFIX, RING_CLASS, ROCK_CLASS, Role_if, SCROLL_CLASS, SHIELD_OF_REFLECTION, SLIME_MOLD, SPBOOK_CLASS, SPE_BOOK_OF_THE_DEAD, Sprintf, STATUE, STATUE_HISTORIC, Strcat, Strcpy, strncmpi(), TIN, TOOL_CLASS, TRUE, type_is_pname, u, you::ux, you::uy, vegetarian, VENOM_CLASS, vowels, WAND_CLASS, and WEAPON_CLASS.
Referenced by addtobill(), animate_statue(), arti_invoke(), artifact_hit(), artifact_score(), backfire(), bagotricks(), ballfall(), begin_burn(), bhit(), boulder_hits_pool(), break_armor(), burn_floor_paper(), burn_object(), burnarmor(), bury_an_obj(), buzz(), cancel_item(), carry_count(), chest_shatter_msg(), chest_trap(), cleanup_burn(), container_contents(), cxname(), ddocall(), del_sokoprize(), destroy_item(), destroy_mitem(), dig(), dip(), do_improvisation(), do_oname(), do_play_instrument(), docall(), dodip(), doeat(), dofiretrap(), doforce(), dokick(), doloot(), doname_base(), done(), dopayobj(), doread(), dosit(), dotrap(), dozap(), drag_ball(), drop_boulder_on_monster(), drop_boulder_on_player(), end_burn(), engrave(), fire_damage(), fix_attributes_and_properties(), flooreffects(), food_xname(), forcelock(), fprefx(), get_wet(), ghitm(), hmon_hitmon(), hurtarmor(), hurtle_step(), hurtmarmor(), in_container(), in_or_out_menu(), inven_inuse(), invocation_message(), kick_object(), killer_xname(), lava_effects(), lift_object(), litroom(), lookat(), m_slips_free(), m_throw(), mdamagem(), melt_ice(), mon_wield_item(), monstone(), moverock(), mshot_xname(), mswings(), mswingsm(), mzapmsg(), obj_timer_checks(), ohitmon(), on_msg(), otransit_msg(), p_glow1(), p_glow2(), passive(), peffects(), pick_lock(), pleased(), precheck(), ready_weapon(), recharge(), revive_corpse(), see_lamp_flicker(), seffects(), select_off(), setmnotwielded(), shkcatch(), singular(), stripspe(), tamedog(), thitmonst(), throw_obj(), throwit(), thrwmu(), Tobjnam(), toss_up(), touch_artifact(), u_slip_free(), untrap(), update_mon_intrinsics(), use_bell(), use_candelabrum(), use_candle(), use_container(), use_cream_pie(), use_crystal_ball(), use_grease(), use_lamp(), use_misc(), use_offensive(), use_stone(), use_whip(), wand_explode(), water_damage(), weldmsg(), wield_tool(), zap_dig(), zap_updown(), and zapyourself().
char* yname | ( | struct obj * | obj ) |
References BUFSZ, cxname(), nextobuf(), and shk_your().
Referenced by bagotricks(), cast_wizard_spell(), dip(), do_break_wand(), dochug(), domindblast(), goto_level(), recharge(), steal(), use_container(), use_grease(), use_lamp(), use_pick_axe2(), and Yname2().
char* Yname2 | ( | struct obj * | obj ) |
References highc(), and yname().
Referenced by can_twoweapon(), catch_lit(), dip(), fire_damage(), see_lamp_flicker(), snuff_lit(), use_container(), and use_lamp().
char* ysimple_name | ( | struct obj * | obj ) |
References BUFSZ, nextobuf(), shk_your(), and simple_typename().
Referenced by do_break_wand(), use_container(), and Ysimple_name2().
char* Ysimple_name2 | ( | struct obj * | obj ) |
References highc(), and ysimple_name().
Referenced by destroy_arm().
STATIC_OVL struct Jitem Japanese_items[] |
{ { SHORT_SWORD, "wakizashi" }, { BROADSWORD, "ninja-to" }, { FLAIL, "nunchaku" }, { GLAIVE, "naginata" }, { LOCK_PICK, "osaku" }, { WOODEN_HARP, "koto" }, { KNIFE, "shito" }, { PLATE_MAIL, "tanko" }, { HELMET, "kabuto" }, { LEATHER_GLOVES, "yugake" }, { FOOD_RATION, "gunyoki" }, { POT_BOOZE, "sake" }, {0, "" } }
Referenced by Japanese_item_name(), and readobjnam().
{ { "bag", TOOL_CLASS, SACK, BAG_OF_TRICKS }, { "lamp", TOOL_CLASS, OIL_LAMP, MAGIC_LAMP }, { "candle", TOOL_CLASS, TALLOW_CANDLE, WAX_CANDLE }, { "horn", TOOL_CLASS, TOOLED_HORN, HORN_OF_PLENTY }, { "shield", ARMOR_CLASS, SMALL_SHIELD, SHIELD_OF_REFLECTION }, { "helm", ARMOR_CLASS, ELVEN_LEATHER_HELM, HELM_OF_TELEPATHY }, { "gloves", ARMOR_CLASS, LEATHER_GLOVES, GAUNTLETS_OF_DEXTERITY }, { "gauntlets", ARMOR_CLASS, LEATHER_GLOVES, GAUNTLETS_OF_DEXTERITY }, { "boots", ARMOR_CLASS, LOW_BOOTS, LEVITATION_BOOTS }, { "shoes", ARMOR_CLASS, LOW_BOOTS, IRON_SHOES }, { "cloak", ARMOR_CLASS, MUMMY_WRAPPING, CLOAK_OF_DISPLACEMENT }, { "dragon scales", ARMOR_CLASS, GRAY_DRAGON_SCALES, YELLOW_DRAGON_SCALES }, { "dragon scale mail", ARMOR_CLASS, GRAY_DRAGON_SCALE_MAIL, YELLOW_DRAGON_SCALE_MAIL }, { "sword", WEAPON_CLASS, SHORT_SWORD, KATANA }, { "gray stone", GEM_CLASS, LUCKSTONE, FLINT }, { "grey stone", GEM_CLASS, LUCKSTONE, FLINT }, }
const char* const special_subjs[] [static] |
{ "erinys", "manes", "Cyclops", "Hippocrates", "Pelias", "aklys", "amnesia", "paralysis", 0 }
struct alt_spellings spellings[] |
Referenced by readobjnam().
const char* wrp[] [static] |
{ "wand", "ring", "potion", "scroll", "gem", "amulet", "spellbook", "spell book", "weapon", "armor", "armour", "tool", "food", "comestible", }
const char wrpsym[] [static] |
{ WAND_CLASS, RING_CLASS, POTION_CLASS, SCROLL_CLASS, GEM_CLASS, AMULET_CLASS, SPBOOK_CLASS, SPBOOK_CLASS, WEAPON_CLASS, ARMOR_CLASS, ARMOR_CLASS, TOOL_CLASS, FOOD_CLASS, FOOD_CLASS }