cyqww_branch
kongju 1 year ago
parent 9ee65a6f42
commit 076a5a8b4f

@ -6,7 +6,71 @@
/*
* Contains code for picking objects up, and container use.
*/
/*simple_look(struct obj *, boolean):用于简单地查看物体的函数。
query_classes(char *, boolean *, boolean *, const char *, struct obj *, boolean, int *)
fatal_corpse_mistake(struct obj *, boolean)
describe_decor(void)
check_here(boolean)
n_or_more(struct obj *)
all_but_uchain(struct obj *)
autopick(struct obj *, int, menu_item **)
count_categories(struct obj *, int)
delta_cwt(struct obj *, struct obj *)
carry_count(struct obj *, struct obj *, long, boolean, int *, int *)
lift_object(struct obj *, struct obj *, long *, boolean)
mbag_explodes(struct obj *, int)
is_boh_item_gone(void)
do_boh_explosion(struct obj *, boolean)
boh_loss(struct obj *, boolean)
in_container(struct obj *)
out_container(struct obj *)
mbag_item_gone(boolean, struct obj *, boolean)
stash_ok(struct obj *)
explain_container_prompt(boolean)
traditional_loot(boolean)
menu_loot(int, boolean)
tip_ok(struct obj *)
tipcontainer_gettarget(struct obj *, boolean *)
tipcontainer_checks(struct obj *, struct obj *, boolean)
in_or_out_menu(const char *, struct obj *, boolean, boolean, boolean, boolean)
able_to_loot(coordxy, coordxy, boolean)
reverse_loot(void)
mon_beside(coordxy, coordxy)
do_loot_cont(struct obj **, int, int)
doloot_core(void)
tipcontainer(struct obj *)*/
#include "hack.h"
#define CONTAINED_SYM '>' /* from invent.c */

@ -2,7 +2,21 @@
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2018. */
/* NetHack may be freely redistributed. See license for details. */
/*putmesg 函数:将消息输出到消息窗口,并且根据消息的紧急程度以及是否需要记录历史消息做相应的处理。
pline
dumplogmsg dumplogfreemessages
YouYourYou_feel "You feel""Your sword"
verbalize
impossible
raw_printf
*/
#include "hack.h"
#define BIGBUFSZ (5 * BUFSZ) /* big enough to format a 4*BUFSZ string (from

@ -18,7 +18,23 @@
*
* polymon (called directly) usually golem petrification
*/
/*check_strangling 函数:用于检查角色是否处于被勒死状态,并采取相应的行动。
polyman
dropp
break_armor 穿
drop_weapon
armor_to_dragon 穿
newman
polysense
no_longer_petrify_resistant */
#include "hack.h"
static void check_strangling(boolean);

@ -2,7 +2,73 @@
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2013. */
/* NetHack may be freely redistributed. See license for details. */
/*itimeout 函数:用于处理角色的定时器,返回一个计时器的剩余时间。
itimeout_incr
ghost_from_bottle
drink_ok
peffect_restore_ability
peffect_hallucination 使
peffect_water 使
peffect_booze 使
peffect_enlightenment 使
peffect_invisibility 使
peffect_see_invisible 使
peffect_paralysis 使
peffect_sleeping 使
peffect_monster_detection 使
peffect_object_detection 使
peffect_sickness 使
peffect_confusion 使
peffect_gain_ability 使
peffect_speed 使
peffect_blindness 使
peffect_gain_level 使
peffect_healing
peffect_extra_healing
peffect_full_healing
peffect_levitation 使
peffect_gain_energy 使
peffect_oil
peffect_acid 使
peffect_polymorph
H2Opotion_dip
mixtype
dip_ok
hold_potion
potion_dip */
#include "hack.h"
static long itimeout(long);

@ -1,7 +1,68 @@
/* NetHack 3.7 spell.c $NHDT-Date: 1646838390 2022/03/09 15:06:30 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.131 $ */
/* Copyright (c) M. Stephenson 1988 */
/* NetHack may be freely redistributed. See license for details. */
/*static int spell_let_to_idx(char)
static boolean cursed_book(struct obj * bp)
static boolean confused_book(struct obj *)
static void deadbook_pacify_undead(struct monst *)
使
static void deadbook(struct obj *)
static int learn(void)
static boolean rejectcasting(void)
static boolean getspell(int *)
static int QSORTCALLBACK spell_cmp(const genericptr, const genericptr)
static void sortspells(void)
static boolean spellsortmenu(void)
static boolean dospellmenu(const char *, int, int *)
static int percent_success(int)
static char *spellretention(int, char *)
static int throwspell(void)
static void cast_protection(void)
static void spell_backfire(int)
static boolean spelleffects_check(int, int *, int *)
static const char *spelltypemnemonic(int)
static boolean can_center_spell_location(coordxy, coordxy)
static boolean spell_aim_step(genericptr_t, coordxy, coordxy)
*/
#include "hack.h"
/* spellmenu arguments; 0 thru n-1 used as gs.spl_book[] index when swapping */

@ -2,7 +2,27 @@
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
/*stealgold函数用于让怪物从玩家身上偷取金币根据玩家是否拥有真金gold或者数量不同的金币来进行不同的处理。
thiefdead
unresponsive
unstolenarm
stealarm
remove_worn_item穿
somegold
findgold
equipname
stealamulet
maybe_absorb_item*/
#include "hack.h"
static int stealarm(void);

@ -1,7 +1,27 @@
/* NetHack 3.7 steed.c $NHDT-Date: 1671838909 2022/12/23 23:41:49 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.108 $ */
/* Copyright (c) Kevin Hugo, 1998-1999. */
/* NetHack may be freely redistributed. See license for details. */
/*rider_cant_reach(void) - 当骑手无法到达某个位置时调用,用于通知玩家。
can_saddle(struct monst* mtmp) -
use_saddle(struct obj* otmp) -
put_saddle_on_mon(struct obj* saddle, struct monst* mtmp) -
can_ride(struct monst* mtmp) -
doride(void) -
mount_steed(struct monst *mtmp, boolean force) -
exercise_steed(void) -
kick_steed(void) -
landing_spot(coord *spot, int reason, int forceit) -
dismount_steed(int reason) - */
#include "hack.h"
/* Monsters that might be ridden */

@ -1,7 +1,25 @@
/* NetHack 3.7 symbols.c $NHDT-Date: 1661295669 2022/08/23 23:01:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.90 $ */
/* Copyright (c) NetHack Development Team 2020. */
/* NetHack may be freely redistributed. See license for details. */
/*savedsym_add(const char *, const char *, int) - 添加保存的符号到缓存中,用于保存和恢复游戏中的特殊符号。
savedsym_find(const char *, int) -
purge_custom_entries(enum graphics_sets which_set) -
def_r_oc_syms[MAXOCLASSES] -
decgraphics_mode_callback - DECtty_start_screen()
ibmgraphics_mode_callback - IBMtty_start_screen()PC9800
ascgraphics_mode_callback - ASCtty_start_screen()PC9800
cursesgraphics_mode_callback - Cursestty_start_screen()
ibmgraphics_mode_callback - IBMtty_start_screen()TTYWIN32
utf8graphics_mode_callback - UTF-8tty_start_screen()unixttywindtty*/
#include "hack.h"
#include "tcap.h"

Loading…
Cancel
Save