keep track of how artifacts got created
Since the struct used for elements of artiexist[] has a lot of unused bits, add some new ones to extend it to indicate how artifacts have been created. It had | .exists (has been created) and | .found (hero is aware that it has been created) introduce | .gift (divine gift), | .wish (player wish), | .named (naming elven weapon Sting or Orcrist) | .viadip (made Excalibur by dipping long sword into fountain) | .rndm (randomly created), and | .bones (from bones file--how it got created in earlier game isn't tracked). The first four are implemented, fifth and sixth aren't. Some of the feedback when receiving an artifact or spellbook has been revised. When artiexist[] was changed from an array of booleans to an array of structs a couple of days ago, EDITLEVEL should have been incremented but I overlooked that at the time. This commit does so now.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 do_name.c $NHDT-Date: 1644347168 2022/02/08 19:06:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.231 $ */
|
||||
/* NetHack 3.7 do_name.c $NHDT-Date: 1646870842 2022/03/10 00:07:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.239 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Pasi Kallinen, 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1341,6 +1341,8 @@ oname(struct obj *obj, const char *name, unsigned oflgs)
|
||||
if (obj->unpaid)
|
||||
alter_cost(obj, 0L);
|
||||
if (via_naming) {
|
||||
artifact_named(obj, TRUE);
|
||||
|
||||
/* violate illiteracy conduct since successfully wrote arti-name */
|
||||
if (!u.uconduct.literate++)
|
||||
livelog_printf(LL_CONDUCT | LL_ARTIFACT,
|
||||
|
||||
Reference in New Issue
Block a user