Merge NetHack 3.6 updates into NetHack-3.7
This commit is contained in:
@@ -164,6 +164,6 @@ deploy:
|
|||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
prerelease: true
|
prerelease: false
|
||||||
name: "Pre-Release build of NetHack 3.7.0"
|
name: "Pre-Release build of NetHack 3.7.0"
|
||||||
body: "This is an auto generated Pre-Release build of NetHack 3.7.0"
|
body: "This is an auto generated Pre-Release build of NetHack 3.7.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$NHDT-Branch: NetHack-3.6-Mar2020 $:$NHDT-Revision: 1.1 $ $NHDT-Date: 1583445339 2020/03/05 21:55:39 $
|
$NHDT-Branch: NetHack-3.6-Mar2020 $:$NHDT-Revision: 1.2 $ $NHDT-Date: 1583606861 2020/03/07 18:47:41 $
|
||||||
|
|
||||||
fixes36.6 contains a terse summary of changes made to 3.6.5 in order to
|
fixes36.6 contains a terse summary of changes made to 3.6.5 in order to
|
||||||
produce 3.6.6 as well as any post-release fixes in binaries.
|
produce 3.6.6 as well as any post-release fixes in binaries.
|
||||||
@@ -12,6 +12,7 @@ formatting corpse names used internal buffers differently from formatting
|
|||||||
avoid divide by 0 crash if 'bogusmon' (file of bogus monster types) is empty
|
avoid divide by 0 crash if 'bogusmon' (file of bogus monster types) is empty
|
||||||
avoid #wizrumorcheck crash if either 'rumors.tru' or 'rumors.fal' or both
|
avoid #wizrumorcheck crash if either 'rumors.tru' or 'rumors.fal' or both
|
||||||
were empty when makedefs built 'rumors'
|
were empty when makedefs built 'rumors'
|
||||||
|
avoid "<mon>'s glorkum pass harmlessly through the shade" for weaponless mon
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes or Features
|
Platform- and/or Interface-Specific Fixes or Features
|
||||||
|
|||||||
14
src/mhitm.c
14
src/mhitm.c
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 mhitm.c $NHDT-Date: 1581886861 2020/02/16 21:01:01 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.130 $ */
|
/* NetHack 3.6 mhitm.c $NHDT-Date: 1583606861 2020/03/07 18:47:41 $ $NHDT-Branch: NetHack-3.6-Mar2020 $:$NHDT-Revision: 1.119 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Robert Patrick Rankin, 2011. */
|
/*-Copyright (c) Robert Patrick Rankin, 2011. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -835,7 +835,7 @@ mdamagem(magr, mdef, mattk)
|
|||||||
register struct monst *magr, *mdef;
|
register struct monst *magr, *mdef;
|
||||||
register struct attack *mattk;
|
register struct attack *mattk;
|
||||||
{
|
{
|
||||||
struct obj *obj, dmgwep;
|
struct obj *obj;
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
struct permonst *pa = magr->data, *pd = mdef->data;
|
struct permonst *pa = magr->data, *pd = mdef->data;
|
||||||
int armpro, num,
|
int armpro, num,
|
||||||
@@ -943,14 +943,8 @@ register struct attack *mattk;
|
|||||||
case AD_HEAL:
|
case AD_HEAL:
|
||||||
case AD_PHYS:
|
case AD_PHYS:
|
||||||
physical:
|
physical:
|
||||||
/* this shade check is necessary in case any attacks which
|
obj = (mattk->aatyp == AT_WEAP || mattk->aatyp == AT_CLAW) ? g.otmp : 0;
|
||||||
dish out physical damage bypass hitmm() to get here */
|
if (shade_miss(magr, mdef, obj, FALSE, TRUE)) {
|
||||||
if ((mattk->aatyp == AT_WEAP || mattk->aatyp == AT_CLAW) && g.otmp)
|
|
||||||
dmgwep = *g.otmp;
|
|
||||||
else
|
|
||||||
dmgwep = cg.zeroobj;
|
|
||||||
|
|
||||||
if (shade_miss(magr, mdef, &dmgwep, FALSE, TRUE)) {
|
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
} else if (mattk->aatyp == AT_KICK && thick_skinned(pd)) {
|
} else if (mattk->aatyp == AT_KICK && thick_skinned(pd)) {
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user