Skip to content

Instantly share code, notes, and snippets.

View Chris-plus-alphanumericgibberish's full-sized avatar

Chris-plus-alphanumericgibberish

View GitHub Profile
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / gist:2c3897261f2b42e71745
Last active October 1, 2015 05:47
dNethack Monsters in Wiki format
This file has been truncated, but you can view the full file.
{{monster
|name=giant ant
|symbol={{brown|a}}
|tile=
|difficulty=4
|level=2
|experience=20
|speed=18
|AC=3
|MR=0
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / gist:5c140ecdc4f669c503fe
Created March 25, 2016 03:21
dnethackmonsters wiki template, each monster on separate line
<span class="monsters" style="background-color: black;">
[[giant ant|{{brown|a}}]]
[[killer bee|{{yellow|a}}]]
[[soldier ant|{{blue|a}}]]
[[fire ant|{{red|a}}]]
[[giant beetle|{{black|a}}]]
[[queen bee|{{magenta|a}}]]
[[acid blob|{{green|b}}]]
[[quivering blob|{{white|b}}]]
[[gelatinous cube|{{cyan|b}}]]
motility
m1_
Fly
Swim
Amorpous (under doors)
phase
cling
tunnel
needs pick
hide under
//MM_ Monster Motility
#define MM_FLY 0x00000001L /* can fly or float */
#define MM_SWIM 0x00000002L /* can traverse water */
#define MM_AMORPHOUS 0x00000004L /* can flow under doors */
#define MM_WALLWALK 0x00000008L /* can phase thru rock */
#define MM_CLING 0x00000010L /* can cling to ceiling */
#define MM_TUNNEL 0x00000020L /* can tunnel thru rock */
#define MM_NEEDPICK 0x00000040L /* needs pick to tunnel */
#define MM_AMPHIBIOUS 0x00000080L /* can survive underwater */
#define MM_BREATHLESS 0x00000100L /* doesn't need to breathe */
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / pager.c
Created June 22, 2016 17:40
pager with reason why you can see monsters
/* SCCS Id: @(#)pager.c 3.4 2003/08/13 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
/* This file contains the command routines dowhatis() and dohelp() and */
/* a few other help related facilities */
#include "hack.h"
#include "dlb.h"
#ifdef BARD
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / gist:b16e6fc0468ebe75e55c
Last active December 1, 2016 22:11
Wiki formated monster entries
{{monster
|name=giant ant
|symbol={{brown|a}}
|tile=
|difficulty=4
|level=2
|experience=20
|speed=18
|AC=3
|MR=0
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / gist:fb0461a9f40ffc41abfe
Last active December 1, 2016 22:13
New dnethack monsters innards. Will need revision aiming at stuff like group pages etc.
[[giant ant|{{brown|a}}]]
[[killer bee|{{yellow|a}}]]
[[soldier ant|{{blue|a}}]]
[[fire ant|{{red|a}}]]
[[giant beetle|{{black|a}}]]
[[queen bee|{{magenta|a}}]]
[[acid blob|{{green|b}}]]
[[blob of preserved organs|{{yellow|b}}]]
[[quivering blob|{{white|b}}]]
[[gelatinous cube|{{cyan|b}}]]
diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c
index a13514f..e1123cd 100644
--- a/sys/unix/unixmain.c
+++ b/sys/unix/unixmain.c
@@ -44,11 +44,27 @@ static void NDECL(wd_message);
static boolean wiz_error_flag = FALSE;
#endif
+#ifdef G_SHEOL
+#ifdef G_HELL
FlFastTeleport: teleports frequently, like a Tengu.
FlStationary: does not move, may still attack.
FlFloat: floats, ie, can't pick things up off the ground.
FlNoLine: attempts to not be lined up with the player, to avoid ranged attacks.
FlFlee: Becomes scared if the player moves adjacent
FlAnimalMind: Has an animal's level of intelligence. NOTE: vanilla grouped M1_ANIMAL with the body shape flags (M1_HUMANOID and M1_SLITHY), but in fact USED it for this.
FlMagivore: eats magic items
FlBold: recovers from fear more quickly
FlChill: corpse will cause cold damage if eaten
FlHot: corpse will cause fire damage and deduct nutrition if eaten
/* neutral */
PM_COCKATRICE, PM_ETTIN, PM_STALKER, PM_MINOTAUR,
PM_OWLBEAR, PM_PURPLE_WORM, PM_XAN, PM_UMBER_HULK,
PM_XORN, PM_LEOCROTTA, PM_BALUCHITHERIUM, PM_CARNIVOROUS_APE,
PM_MASTER_MIND_FLAYER, PM_FIRE_ELEMENTAL, PM_JABBERWOCK, PM_DUNGEON_FERN,
PM_IRON_GOLEM, PM_OCHRE_JELLY, PM_GREEN_SLIME, PM_JUBJUB_BIRD,
PM_BANDERSNATCH, PM_GIANT_TURTLE, PM_WATER_ELEMENTAL,
/* chaotic */
PM_RED_DRAGON, PM_BLACK_DRAGON, PM_ROCK_TROLL, PM_GREMLIN,