OSDN Git Service

Implement permanently repeatedly weak/heavy cursing effects.
[hengband/hengband.git] / src / flavor.c
index 12dad95..a11ab49 100644 (file)
@@ -646,6 +646,8 @@ static flag_insc_table flag_insc_misc[] =
        { "ÅÜ", "Ag", TR_AGGRAVATE, -1 },
        { "½Ë", "Bs", TR_BLESSED, -1 },
        { "´÷", "Ty", TR_TY_CURSE, -1 },
+       { "¼ö", "C-", TR_ADD_L_CURSE, -1 },
+       { "ëÇ", "C+", TR_ADD_H_CURSE, -1 },
        { NULL, NULL, 0, -1 }
 };
 
@@ -805,6 +807,8 @@ static flag_insc_table flag_insc_misc[] =
        { "Ag", TR_AGGRAVATE, -1 },
        { "Bs", TR_BLESSED, -1 },
        { "Ty", TR_TY_CURSE, -1 },
+       { "C-", TR_ADD_L_CURSE, -1 },
+       { "C+", TR_ADD_H_CURSE, -1 },
        { NULL, 0, -1 }
 };
 
@@ -2307,7 +2311,24 @@ void object_desc(char *buf, object_type *o_ptr, u32b mode)
                case TV_HAFTED:
                case TV_POLEARM:
                case TV_SWORD:
-               case TV_DIGGING:
+           case TV_DIGGING:
+               
+               /* In Vault Quest, hide the dice of target weapon. */
+               if (!known && p_ptr->inside_quest)
+               {
+                       int a_idx = quest[p_ptr->inside_quest].k_idx;
+                       if (a_idx)
+                       {
+                               artifact_type *a_ptr = &a_info[a_idx];
+                               if (!(a_ptr->gen_flags & TRG_INSTA_ART))
+                               {
+                                       if((o_ptr->tval == a_ptr->tval) && (o_ptr->sval == a_ptr->sval))
+                                       {
+                                               break;
+                                       }
+                               }
+                       }
+               }
 
                /* Append a "damage" string */
                t = object_desc_chr(t, ' ');