• R/O
  • SSH
  • HTTPS

xangband: Commit


Commit MetaInfo

Révision1888 (tree)
l'heure2013-03-16 13:30:02
Auteuriks

Message de Log

improve bonus activation of helm/crown of seeing

Change Summary

Modification

--- TinyAngband/trunk/src/defines.h (revision 1887)
+++ TinyAngband/trunk/src/defines.h (revision 1888)
@@ -1115,6 +1115,7 @@
11151115 #define ACT_TELEKINESIS 89
11161116 #define ACT_BRAND_FIRE_BOLTS 90
11171117 #define ACT_QUAKE 91
1118+#define ACT_DETECT_MONSTERS 92
11181119
11191120
11201121
--- TinyAngband/trunk/src/object2.c (revision 1887)
+++ TinyAngband/trunk/src/object2.c (revision 1888)
@@ -2593,7 +2593,11 @@
25932593 case EGO_LORDLINESS:
25942594 break;
25952595 case EGO_SEEING:
2596- if (one_in_(3)) o_ptr->art_flags3 |= TR3_ACTIVATE;
2596+ if (one_in_(3))
2597+ {
2598+ o_ptr->art_flags3 |= TR3_ACTIVATE;
2599+ o_ptr->xtra2 = ACT_DETECT_MONSTERS;
2600+ }
25972601 if (one_in_(3)) o_ptr->art_flags3 |= TR3_TELEPATHY;
25982602 break;
25992603 default:/* not existing crown (wisdom,lite, etc...) */
@@ -2666,7 +2670,11 @@
26662670 }
26672671 break;
26682672 case EGO_SEEING:
2669- if (one_in_(7)) o_ptr->art_flags3 |= TR3_ACTIVATE;
2673+ if (one_in_(7))
2674+ {
2675+ o_ptr->art_flags3 |= TR3_ACTIVATE;
2676+ o_ptr->xtra2 = ACT_DETECT_MONSTERS;
2677+ }
26702678 if (one_in_(7)) o_ptr->art_flags3 |= TR3_TELEPATHY;
26712679 break;
26722680 default:/* not existing helm (Magi, Might, etc...)*/
--- TinyAngband/trunk/src/artifact.c (revision 1887)
+++ TinyAngband/trunk/src/artifact.c (revision 1888)
@@ -2191,6 +2191,12 @@
21912191 earthquake(py, px, 10);
21922192 break;
21932193 }
2194+ case ACT_DETECT_MONSTERS:
2195+ {
2196+ detect_monsters_invis(DETECT_RAD_DEFAULT);
2197+ detect_monsters_normal(DETECT_RAD_DEFAULT);
2198+ break;
2199+ }
21942200
21952201 default:
21962202 {
--- TinyAngband/trunk/src/tables.c (revision 1887)
+++ TinyAngband/trunk/src/tables.c (revision 1888)
@@ -3621,6 +3621,8 @@
36213621 _("刃先のファイア・ボルト", "fire branding of bolts") },
36223622 { "QUAKE", ACT_QUAKE, 10, 600, 101, {20, 0},
36233623 _("地震", "earthquake") },
3624+ { "DETECT_MONSTERS", ACT_DETECT_MONSTERS, 10, 1000, 70, {10, 10},
3625+ _("モンスター感知", "detect monsters") },
36243626
36253627 { NULL, 0, 0, 0, 101, {0, 0},
36263628 "" }
Afficher sur ancien navigateur de dépôt.