OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3abbe3e
)
クローカーやデスソードなど、固定種類のアイテムを落とす敵を倒した時、稀に常時伝説物のアーティファクトが生成される可能性があった。この時、アイテムの候補のテーブルもクリアさ...
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 15 Feb 2002 10:37:42 +0000
(10:37 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 15 Feb 2002 10:37:42 +0000
(10:37 +0000)
なので、make_artifact_special()内で、get_obj_num_hookに何か関数が設定されている場合はアーティファクトが生成されないようにした。
src/object2.c
patch
|
blob
|
history
diff --git
a/src/object2.c
b/src/object2.c
index
613b147
..
4cffc3d
100644
(file)
--- a/
src/object2.c
+++ b/
src/object2.c
@@
-2027,6
+2027,9
@@
static bool make_artifact_special(object_type *o_ptr)
/* No artifacts in the town */
if (!dun_level) return (FALSE);
+ /* Themed object */
+ if (get_obj_num_hook) return (FALSE);
+
/* Check the artifact list (just the "specials") */
for (i = 0; i < max_a_idx; i++)
{