Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ functions
Functions
8,785 in github.com/NetHack/NetHack
⨍
Functions
8,785
◇
Types & classes
2,379
↓ 36 callers
Function
freeinv
remove an object from the hero's inventory */
src/invent.c:1402
↓ 36 callers
Function
ini_inv
src/u_init.c:1300
↓ 36 callers
Function
is_pool_or_lava
src/dbridge.c:76
↓ 36 callers
Function
mbodypart
src/polyself.c:1971
↓ 36 callers
Function
rnl
0 <= rnl(x) < x; sometimes subtracting Luck; good luck approaches 0, bad luck approaches (x-1) */
src/rnd.c:111
↓ 36 callers
Function
shkname
shopkeeper's name, without any visibility constraint; if hallucinating, will yield some other shopkeeper's name (not necessarily one residing in
src/shknam.c:855
↓ 36 callers
Function
tilename
* file_entry is the position of the tile within the monsters/objects/other set */
win/share/tilemap.c:193
↓ 36 callers
Function
unblock_point
* unblock_point() * * Make the location transparent to light. */
src/vision.c:898
↓ 35 callers
Function
error
outdated/sys/mac/macerrs.c:18
↓ 35 callers
Function
is_ice
src/dbridge.c:85
↓ 35 callers
Function
mswin_get_font
create font based on window type, charater attributes and window device context */
outdated/sys/wince/mhfont.c:26
↓ 34 callers
Function
add_tileref
win/share/tilemap.c:1486
↓ 34 callers
Function
adjattrib
adjust an attribute; return TRUE if change is made, FALSE otherwise */
src/attrib.c:116
↓ 34 callers
Function
create_des_coder
src/sp_lev.c:6443
↓ 34 callers
Function
goodpos
* Is (x,y) a good position of mtmp? If mtmp is NULL, then is (x,y) good * for an object? * * This function will only look at mtmp->mdat, so makemo
src/teleport.c:85
↓ 34 callers
Function
ok_race
is racenum compatible with any rolenum/gendnum/alignnum constraints? */
src/role.c:1036
↓ 34 callers
Function
wakeup
wake up a monster, possibly making it angry in the process */
src/mon.c:4332
↓ 34 callers
Function
write
outdated/sys/wince/celib.c:313
↓ 33 callers
Function
hitmsg
monster hits hero (most callers have been moved to uthim.c) */
src/mhitu.c:28
↓ 33 callers
Function
put_savefield
util/sfexpasc.c:541
↓ 33 callers
Function
vision_recalc
* vision_recalc() * * Do all of the heavy vision work. Recalculate all locations that could * possibly be seen by the hero --- if the location wer
src/vision.c:511
↓ 32 callers
Function
artifact_light
WAC return TRUE if artifact is always lit */
src/artifact.c:2263
↓ 32 callers
Function
del_engr_at
delete any engraving at location <x,y> */
src/engrave.c:460
↓ 32 callers
Function
docrt
the main refresh-the-screen routine */
src/display.c:1701
↓ 32 callers
Function
read_u32
Decode an unsigned 32 bit quantity */
win/share/bmptiles.c:545
↓ 32 callers
Function
see_monsters
* Loop through all of the monsters and update them. Called when: * + going blind & telepathic * + regaining sight & telepathic * +
src/display.c:1486
↓ 32 callers
Function
sensemon
src/display.c:172
↓ 32 callers
Function
validalign
src/role.c:906
↓ 32 callers
Function
validgend
src/role.c:843
↓ 32 callers
Function
xkilled
the player has killed the monster mtmp */
src/mon.c:3476
↓ 31 callers
Function
clearlocks
src/files.c:732
↓ 31 callers
Function
destroy_items
target items of specified class in mon's inventory for possible destruction return total amount of damage inflicted, though this is unused if mon i
src/zap.c:5964
↓ 31 callers
Function
get_location_coord
src/sp_lev.c:1336
↓ 31 callers
Function
getuid
sys/amiga/amidos.c:71
↓ 31 callers
Function
level_difficulty
use instead of depth() wherever a degree of difficulty is made * dependent on the location in the dungeon (eg. monster creation). */
src/dungeon.c:2026
↓ 31 callers
Function
newcham
make a chameleon take on another shape, or a polymorph target (possibly self-inflicted) become a different monster; returns 1 if it actually cha
src/mon.c:5277
↓ 31 callers
Function
ok_align
is alignnum compatible with any rolenum/racenum/gendnum constraints? */ alignment and gender are not comparable (and also not constrainable) */
src/role.c:1171
↓ 31 callers
Function
paniclog
ARGSUSED*/
src/files.c:2800
↓ 31 callers
Function
poly_when_stoned
does monster-type transform into something else when petrified? */
src/mondata.c:79
↓ 31 callers
Function
record_achievement
record an achievement (add at end of list unless already present) */
src/insight.c:2406
↓ 31 callers
Function
remove_worn_item
An object you're wearing has been taken off by a monster (theft or seduction). Also used if a worn item gets transformed (stone to flesh). */
src/steal.c:212
↓ 30 callers
Method
dissipateHighlight
win/Qt/qt_icon.cpp:217
↓ 30 callers
Function
get_savefield
util/sfexpasc.c:1099
↓ 30 callers
Method
highlightWhenChanging
win/Qt/qt_icon.cpp:184
↓ 30 callers
Function
incr_itimeout
increment the timeout field of intrinsic `which' */
src/potion.c:82
↓ 30 callers
Function
m_useup
remove one instance of an item from a monster's inventory */
src/mthrowu.c:1161
↓ 30 callers
Function
make_confused
src/potion.c:88
↓ 30 callers
Function
mongone
monster disappears, not dies */
src/mon.c:3266
↓ 30 callers
Function
next_shkp
src/shk.c:214
↓ 30 callers
Method
setIcon
win/Qt/qt_icon.cpp:122
↓ 30 callers
Function
stop_timer
* Remove the timer from the current list and free it up. Return the time * remaining until it would have gone off, 0 if not found. */
src/timeout.c:2298
↓ 30 callers
Function
y_monnam
pet name: "your little dog" */
src/do_name.c:1116
↓ 29 callers
Function
Amonnam
src/do_name.c:1158
↓ 29 callers
Function
fuzzymatch
compare two strings for equality, ignoring the presence of specified characters (typically whitespace) and possibly ignoring case */
src/hacklib.c:784
↓ 29 callers
Function
nhl_add_table_entry_bool
src/nhlua.c:317
↓ 29 callers
Function
note
* display messages using Notification Manager or an alert. * no run-length checking is done. the messages are created to fit * in the allocated spa
outdated/sys/mac/mrecover.c:486
↓ 29 callers
Function
ok_gend
is gendnum compatible with any rolenum/racenum/alignnum constraints? */ gender and alignment are not comparable (and also not constrainable) */
src/role.c:1106
↓ 29 callers
Function
qt_pager
src/questpgr.c:629
↓ 29 callers
Function
recalc_block_point
recalc if point should be blocked or unblocked */
src/vision.c:910
↓ 29 callers
Function
set_ustuck
src/mon.c:3420
↓ 29 callers
Function
stairway_at
src/stairs.c:39
↓ 29 callers
Function
unlock_file
unlock file, which must be currently locked by lock_file */
src/files.c:2415
↓ 28 callers
Function
curses_get_nhwin
win/curses/curswins.c:282
↓ 28 callers
Function
defended
is 'mon' (possibly youmonst) protected against damage type 'adtype' via wielded weapon or worn dragon scales? [or by virtue of being a dragon?] */
src/mondata.c:90
↓ 28 callers
Function
dlb_fclose
src/dlb.c:482
↓ 28 callers
Function
insane_object
src/mkobj.c:3313
↓ 28 callers
Function
m_carrying
check if a monster is carrying an item of a particular type */
src/mthrowu.c:1404
↓ 28 callers
Function
map_glyphinfo
src/display.c:2593
↓ 28 callers
Function
mar_display_nhwindow
(wind)
outdated/win/gem/wingem1.c:2200
↓ 28 callers
Function
mhitm_mgc_atk_negated
src/uhitm.c:74
↓ 28 callers
Function
mkobj
mkobj(): select a type of item from a class, use mksobj() to create it; result is always non-Null */
src/mkobj.c:269
↓ 28 callers
Function
read
outdated/sys/wince/celib.c:286
↓ 27 callers
Function
a_monnam
src/do_name.c:1151
↓ 27 callers
Function
add_damage
src/shk.c:4398
↓ 27 callers
Function
ceiling
src/dungeon.c:1713
↓ 27 callers
Function
cmdq_clear
clear all commands from the command queue */
src/cmd.c:430
↓ 27 callers
Function
costly_alteration
possibly bill for an object which the player has just modified */
src/mkobj.c:751
↓ 27 callers
Function
end_burn
* Stop a burn timeout on the given object if timer attached. Darken * light source. */
src/timeout.c:1803
↓ 27 callers
Function
fseek
outdated/sys/wince/celib.c:896
↓ 27 callers
Function
get_table_option
opts[] is a null-terminated list */
src/nhlua.c:1121
↓ 27 callers
Function
lcheck_param_table
src/nhlua.c:220
↓ 27 callers
Function
mintrap
src/trap.c:3732
↓ 27 callers
Function
monflee
monster begins fleeing for the specified time, 0 means untimed flee * if first, only adds fleetime if monster isn't already fleeing * if fleemsg, pr
src/monmove.c:461
↓ 27 callers
Function
obj_resists
src/zap.c:1457
↓ 27 callers
Function
resist
src/zap.c:6099
↓ 27 callers
Method
setLabel
win/Qt/qt_icon.cpp:80
↓ 27 callers
Method
setLabel
outdated/win/Qt3/qt3_win.cpp:2088
↓ 27 callers
Function
strkitten
append a character to a string (in place): strcat(s, {c,'\0'}); */
src/hacklib.c:275
↓ 26 callers
Function
amii_putstr
sys/amiga/winstr.c:16
↓ 26 callers
Function
argcheck
* Returns: * 0 = no match * 1 = found and skip past this argument * 2 = found and trigger immediate exit */
src/earlyarg.c:449
↓ 26 callers
Function
bad_negation
src/options.c:6692
↓ 26 callers
Function
bcsign
src/mkobj.c:1856
↓ 26 callers
Function
dismount_steed
Stop riding the current steed */
src/steed.c:575
↓ 26 callers
Function
dlb_fopen
src/dlb.c:455
↓ 26 callers
Function
enlght_out
src/insight.c:117
↓ 26 callers
Function
flooreffects
Used for objects which sometimes do special things when dropped; must be * called with the object not in any chain. Returns TRUE if the object goes
src/do.c:161
↓ 26 callers
Function
fwrite
outdated/sys/wince/celib.c:877
↓ 26 callers
Function
get_artifact
src/artifact.c:2820
↓ 26 callers
Method
insertItem
outdated/win/Qt3/qt3_win.cpp:1879
↓ 26 callers
Function
make_stunned
src/potion.c:106
← previous
next →
201–300 of 8,785, ranked by callers