Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris-plus-alphanumericgibberish

View GitHub Profile
View gist:2e64f89f8e096432d353c1234453f53b
Anti-Clockwise Metamorphosis
+3 speed
20 insight
X ethereal dervish
DONE
Arcane Lake
Intrinsic MR
18 insight
P (sparkling) rippling pool
@Chris-plus-alphanumericgibberish
Chris-plus-alphanumericgibberish / Enlightenment
Last active Jan 24, 2020
What's revealed by enlightenment
View Enlightenment
Crowning
Prayer
Alignment
Wizard:
Wantedness
Studied
Spirits (Count)
Seals (bits)
Special seals (bits)
Spirits (names)
View Early return correct?
/* level-draining effect doesn't actually need blood, it drains life force */
if ((uncancelled || (attk->adtyp == AD_VAMP && notmcan))
&& !Drain_res(mdef)
&& !(pa == &mons[PM_VAMPIRE_BAT] && !(youdef ? u.usleep : mdef->msleeping)) /* vampire bats need sleeping victims */
&& !rn2(3)
) {
if(attk->aatyp == AT_VINE && youdef && !HSterile){
You_feel("old.");
HSterile |= FROMOUTSIDE;
return MM_HIT;
View general damage bonus and m_dbon()
/* general damage bonus */
if(real_attack){
/* The player has by-far the most detailed attacks */
if (youagr && (valid_weapon_attack || fake_valid_weapon_attack || unarmed_punch || unarmed_kick || natural_strike)) {
int bon_damage = 0;
bon_damage += u.udaminc;
bon_damage += aeshbon();
/* If you throw using a propellor, you don't get a strength
* bonus but you do get an increase-damage bonus.
View give_maddness func
int
give_maddness(mon)
struct monst *mon;
{
int mm = monsndx(mon->data);
switch(mm){
case PM_ALDINACH:
u.umadness |= MAD_REAL_DELUSIONS;
break;
case PM_ALRUNES:
View gist:7d01b1297d6947559e24f41ae89c3cff
{{monster
|name=giant ant
|symbol={{brown|a}}
|tile=
|difficulty=4
|level=2
|experience=20
|speed=18
|AC=3
|MR=0
View gist:c9aded024187523189308510e32ba334
{{monster
|name=giant ant
|symbol={{brown|a}}
|tile=
|difficulty=4
|level=2
|experience=20
|speed=18
|AC=3
|MR=0
View uhitm with damage debug prints
/* SCCS Id: @(#)uhitm.c 3.4 2003/02/18 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
#include "artifact.h"
STATIC_DCL boolean FDECL(known_hitum, (struct monst *,int *,struct attack *));
STATIC_DCL boolean FDECL(known_hitum_wepi, (struct monst *,int *,struct attack *, int));
STATIC_DCL void FDECL(steal_it, (struct monst *, struct attack *));
View Law quest shops
Armor
c - an uncursed +0 ring mail
───────────────── f - a ceramic wool-lined plate mail (unpaid, 900 zorkmids)
±·±·±·±·±·±·±·±·± (end)
···················±·······±·······±····┌───┐±·····┌───┐·····±·············±
··±·±·±·±·±·±·±·±·····±···±···±·±·····±┌┘···└┐··±·┌┘m[(└┐···±···±···±┌───┐··
·±·····±·····±···±·±···±···±···±·±···±·│·····│·±··│·[m[(│±···±···±·±┌┘···└┐±
····±···············±···±···±·····±·±··+·····│±···+a(([[│·±···±·····│·····│·
·±·±·····±·±···±·±·±···±·±·±···±···±·±·│·····│·±·±│·%(@(│··±·····±··│·····│±
······±·±···±·±·······±·······±········└┐···┌┘····└┐m%(┌┘···±·±·±·±·│·····│·
View gist:61486c7332c44e298e56f2f4c5b9083f
0x008a8829 in possibly_unwield (mon=0x1b24e48, polyspot=0 '\000')
at ../src/weapon.c:2019
2019 if (!(mw_tmp->cursed && mon->weapon_check == NO_WEAPON_WANTED))