{
case 1: case 2:
o_ptr->art_flags1 |= TR1_STR;
- /* if (is_scroll) msg_print("It makes you feel strong!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_STR;
else if (!artifact_bias && one_in_(7))
break;
case 3: case 4:
o_ptr->art_flags1 |= TR1_INT;
- /* if (is_scroll) msg_print("It makes you feel smart!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_INT;
else if (!artifact_bias && one_in_(7))
break;
case 5: case 6:
o_ptr->art_flags1 |= TR1_WIS;
- /* if (is_scroll) msg_print("It makes you feel wise!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_WIS;
else if (!artifact_bias && one_in_(7))
break;
case 7: case 8:
o_ptr->art_flags1 |= TR1_DEX;
- /* if (is_scroll) msg_print("It makes you feel nimble!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_DEX;
else if (!artifact_bias && one_in_(7))
break;
case 9: case 10:
o_ptr->art_flags1 |= TR1_CON;
- /* if (is_scroll) msg_print("It makes you feel healthy!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_CON;
else if (!artifact_bias && one_in_(9))
break;
case 11: case 12:
o_ptr->art_flags1 |= TR1_CHR;
- /* if (is_scroll) msg_print("It makes you look great!"); */
if (!artifact_bias && !one_in_(13))
artifact_bias = BIAS_CHR;
break;
case 13: case 14:
o_ptr->art_flags1 |= TR1_STEALTH;
- /* if (is_scroll) msg_print("It looks muffled."); */
if (!artifact_bias && one_in_(3))
artifact_bias = BIAS_ROGUE;
break;
case 15: case 16:
o_ptr->art_flags1 |= TR1_SEARCH;
- /* if (is_scroll) msg_print("It makes you see better."); */
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_RANGER;
break;
case 17: case 18:
o_ptr->art_flags1 |= TR1_INFRA;
- /* if (is_scroll) msg_print("It makes you see tiny red animals.");*/
break;
case 19:
o_ptr->art_flags1 |= TR1_SPEED;
- /* if (is_scroll) msg_print("It makes you move faster!"); */
if (!artifact_bias && one_in_(11))
artifact_bias = BIAS_ROGUE;
break;
case 20: case 21:
o_ptr->art_flags1 |= TR1_TUNNEL;
- /* if (is_scroll) msg_print("Gravel flies from it!"); */
break;
case 22: case 23:
if (o_ptr->tval == TV_BOW) random_plus(o_ptr, is_scroll);
else
{
o_ptr->art_flags1 |= TR1_BLOWS;
- /* if (is_scroll) msg_print("It seems faster!"); */
if (!artifact_bias && one_in_(11))
artifact_bias = BIAS_WARRIOR;
}
else
{
o_ptr->art_flags2 |= TR2_IM_ACID;
- /* if (is_scroll) msg_print("It looks totally incorruptible."); */
if (!artifact_bias)
artifact_bias = BIAS_ACID;
}
else
{
o_ptr->art_flags2 |= TR2_IM_ELEC;
- /* if (is_scroll) msg_print("It looks completely grounded."); */
if (!artifact_bias)
artifact_bias = BIAS_ELEC;
}
else
{
o_ptr->art_flags2 |= TR2_IM_COLD;
- /* if (is_scroll) msg_print("It feels very warm."); */
if (!artifact_bias)
artifact_bias = BIAS_COLD;
}
else
{
o_ptr->art_flags2 |= TR2_IM_FIRE;
- /* if (is_scroll) msg_print("It feels very cool."); */
if (!artifact_bias)
artifact_bias = BIAS_FIRE;
}
case 6:
case 13:
o_ptr->art_flags2 |= TR2_RES_ACID;
- /* if (is_scroll) msg_print("It makes your stomach rumble."); */
if (!artifact_bias)
artifact_bias = BIAS_ACID;
break;
case 8:
case 14:
o_ptr->art_flags2 |= TR2_RES_ELEC;
- /* if (is_scroll) msg_print("It makes you feel grounded."); */
if (!artifact_bias)
artifact_bias = BIAS_ELEC;
break;
case 10:
case 15:
o_ptr->art_flags2 |= TR2_RES_FIRE;
- /* if (is_scroll) msg_print("It makes you feel cool!");*/
if (!artifact_bias)
artifact_bias = BIAS_FIRE;
break;
case 12:
case 16:
o_ptr->art_flags2 |= TR2_RES_COLD;
- /* if (is_scroll) msg_print("It makes you feel full of hot air!");*/
if (!artifact_bias)
artifact_bias = BIAS_COLD;
break;
case 17:
case 18:
o_ptr->art_flags2 |= TR2_RES_POIS;
- /* if (is_scroll) msg_print("It makes breathing easier for you."); */
if (!artifact_bias && !one_in_(4))
artifact_bias = BIAS_POIS;
else if (!artifact_bias && one_in_(2))
case 19:
case 20:
o_ptr->art_flags2 |= TR2_RES_FEAR;
- /* if (is_scroll) msg_print("It makes you feel brave!"); */
if (!artifact_bias && one_in_(3))
artifact_bias = BIAS_WARRIOR;
break;
case 21:
o_ptr->art_flags2 |= TR2_RES_LITE;
- /* if (is_scroll) msg_print("It makes everything look darker.");*/
break;
case 22:
o_ptr->art_flags2 |= TR2_RES_DARK;
- /* if (is_scroll) msg_print("It makes everything look brighter.");*/
break;
case 23:
case 24:
o_ptr->art_flags2 |= TR2_RES_BLIND;
- /* if (is_scroll) msg_print("It makes you feel you are wearing glasses.");*/
break;
case 25:
case 26:
o_ptr->art_flags2 |= TR2_RES_CONF;
- /* if (is_scroll) msg_print("It makes you feel very determined.");*/
if (!artifact_bias && one_in_(6))
artifact_bias = BIAS_CHAOS;
break;
case 27:
case 28:
o_ptr->art_flags2 |= TR2_RES_SOUND;
- /* if (is_scroll) msg_print("It makes you feel deaf!");*/
break;
case 29:
case 30:
o_ptr->art_flags2 |= TR2_RES_SHARDS;
- /* if (is_scroll) msg_print("It makes your skin feel thicker.");*/
break;
case 31:
case 32:
o_ptr->art_flags2 |= TR2_RES_NETHER;
- /* if (is_scroll) msg_print("It makes you feel like visiting a graveyard!");*/
if (!artifact_bias && one_in_(3))
artifact_bias = BIAS_NECROMANTIC;
break;
case 33:
case 34:
o_ptr->art_flags2 |= TR2_RES_NEXUS;
- /* if (is_scroll) msg_print("It makes you feel normal.");*/
break;
case 35:
case 36:
o_ptr->art_flags2 |= TR2_RES_CHAOS;
- /* if (is_scroll) msg_print("It makes you feel very firm.");*/
if (!artifact_bias && one_in_(2))
artifact_bias = BIAS_CHAOS;
break;
case 37:
case 38:
o_ptr->art_flags2 |= TR2_RES_DISEN;
- /* if (is_scroll) msg_print("It is surrounded by a static feeling.");*/
break;
case 39:
if (o_ptr->tval >= TV_CLOAK && o_ptr->tval <= TV_HARD_ARMOR)
{
case 1:
o_ptr->art_flags2 |= TR2_SUST_STR;
- /* if (is_scroll) msg_print("It makes you feel you cannot become weaker."); */
if (!artifact_bias)
artifact_bias = BIAS_STR;
break;
case 2:
o_ptr->art_flags2 |= TR2_SUST_INT;
- /* if (is_scroll) msg_print("It makes you feel you cannot become more stupid.");*/
if (!artifact_bias)
artifact_bias = BIAS_INT;
break;
case 3:
o_ptr->art_flags2 |= TR2_SUST_WIS;
- /* if (is_scroll) msg_print("It makes you feel you cannot become simpler.");*/
if (!artifact_bias)
artifact_bias = BIAS_WIS;
break;
case 4:
o_ptr->art_flags2 |= TR2_SUST_DEX;
- /* if (is_scroll) msg_print("It makes you feel you cannot become clumsier.");*/
if (!artifact_bias)
artifact_bias = BIAS_DEX;
break;
case 5:
o_ptr->art_flags2 |= TR2_SUST_CON;
- /* if (is_scroll) msg_print("It makes you feel you cannot become less healthy.");*/
if (!artifact_bias)
artifact_bias = BIAS_CON;
break;
case 6:
o_ptr->art_flags2 |= TR2_SUST_CHR;
- /* if (is_scroll) msg_print("It makes you feel you cannot become uglier.");*/
if (!artifact_bias)
artifact_bias = BIAS_CHR;
break;
case 8:
case 14:
o_ptr->art_flags2 |= TR2_FREE_ACT;
- /* if (is_scroll) msg_print("It makes you feel like a young rebel!");*/
break;
case 9:
o_ptr->art_flags2 |= TR2_HOLD_LIFE;
- /* if (is_scroll) msg_print("It makes you feel immortal.");*/
if (!artifact_bias && one_in_(5))
artifact_bias = BIAS_PRIESTLY;
else if (!artifact_bias && one_in_(6))
case 10:
case 11:
o_ptr->art_flags3 |= TR3_LITE;
- /* if (is_scroll) msg_print("It starts shining.");*/
break;
case 12:
case 13:
o_ptr->art_flags3 |= TR3_FEATHER;
- /* if (is_scroll) msg_print("It feels lighter.");*/
break;
case 15:
case 16:
case 17:
o_ptr->art_flags3 |= TR3_SEE_INVIS;
- /* if (is_scroll) msg_print("It makes you see the air!");*/
break;
case 18:
if (one_in_(3)) break;
o_ptr->art_flags3 |= TR3_TELEPATHY;
- /* if (is_scroll) msg_print("It makes you hear voices inside your head!");*/
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_MAGE;
break;
case 19:
case 20:
o_ptr->art_flags3 |= TR3_SLOW_DIGEST;
- /* if (is_scroll) msg_print("It makes you feel less hungry.");*/
break;
case 21:
case 22:
o_ptr->art_flags3 |= TR3_REGEN;
- /* if (is_scroll) msg_print("It looks as good as new.");*/
break;
case 23:
o_ptr->art_flags3 |= TR3_TELEPORT;
- /* if (is_scroll) msg_print("Its position feels uncertain!");*/
break;
case 24:
case 25:
case 1:
case 2:
o_ptr->art_flags1 |= TR1_SLAY_ANIMAL;
- /* if (is_scroll) msg_print("You start hating animals.");*/
break;
case 3:
case 4:
o_ptr->art_flags1 |= TR1_SLAY_EVIL;
- /* if (is_scroll) msg_print("You hate evil creatures.");*/
if (!artifact_bias && one_in_(2))
artifact_bias = BIAS_LAW;
else if (!artifact_bias && one_in_(9))
case 5:
case 6:
o_ptr->art_flags1 |= TR1_SLAY_UNDEAD;
- /* if (is_scroll) msg_print("You hate undead creatures.");*/
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_PRIESTLY;
break;
case 7:
case 8:
o_ptr->art_flags1 |= TR1_SLAY_DEMON;
- /* if (is_scroll) msg_print("You hate demons.");*/
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_PRIESTLY;
break;
case 9:
case 10:
o_ptr->art_flags1 |= TR1_SLAY_ORC;
- /* if (is_scroll) msg_print("You hate orcs.");*/
break;
case 11:
case 12:
o_ptr->art_flags1 |= TR1_SLAY_TROLL;
- /* if (is_scroll) msg_print("You hate trolls.");*/
break;
case 13:
case 14:
o_ptr->art_flags1 |= TR1_SLAY_GIANT;
- /* if (is_scroll) msg_print("You hate giants.");*/
break;
case 15:
case 16:
o_ptr->art_flags1 |= TR1_SLAY_DRAGON;
- /* if (is_scroll) msg_print("You hate dragons.");*/
break;
case 17:
o_ptr->art_flags1 |= TR1_KILL_DRAGON;
- /* if (is_scroll) msg_print("You feel an intense hatred of dragons.");*/
break;
case 18:
case 19:
if (o_ptr->tval == TV_SWORD)
{
o_ptr->art_flags1 |= TR1_VORPAL;
- /* if (is_scroll) msg_print("It looks extremely sharp!");*/
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_WARRIOR;
}
break;
case 20:
o_ptr->art_flags1 |= TR1_IMPACT;
- /* if (is_scroll) msg_print("The ground trembles beneath you.");*/
break;
case 21:
case 22:
o_ptr->art_flags1 |= TR1_BRAND_FIRE;
- /* if (is_scroll) msg_print("It feels hot!");*/
if (!artifact_bias)
artifact_bias = BIAS_FIRE;
break;
case 23:
case 24:
o_ptr->art_flags1 |= TR1_BRAND_COLD;
- /* if (is_scroll) msg_print("It feels cold!");*/
if (!artifact_bias)
artifact_bias = BIAS_COLD;
break;
case 25:
case 26:
o_ptr->art_flags1 |= TR1_BRAND_ELEC;
- /* if (is_scroll) msg_print("Ouch! You get zapped!");*/
if (!artifact_bias)
artifact_bias = BIAS_ELEC;
break;
case 27:
case 28:
o_ptr->art_flags1 |= TR1_BRAND_ACID;
- /* if (is_scroll) msg_print("Its smell makes you feel dizzy.");*/
if (!artifact_bias)
artifact_bias = BIAS_ACID;
break;
case 29:
case 30:
o_ptr->art_flags1 |= TR1_BRAND_POIS;
- /* if (is_scroll) msg_print("It smells rotten.");*/
if (!artifact_bias && !one_in_(3))
artifact_bias = BIAS_POIS;
else if (!artifact_bias && one_in_(6))
break;
case 31:
o_ptr->art_flags1 |= TR1_VAMPIRIC;
- /* if (is_scroll) msg_print("You think it bit you!");*/
if (!artifact_bias)
artifact_bias = BIAS_NECROMANTIC;
break;
case 32:
o_ptr->art_flags1 |= TR1_FORCE_WEAPON;
- /* if (is_scroll) msg_print("It looks consuming your MP!");*/
if (!artifact_bias)
artifact_bias = (one_in_(2) ? BIAS_MAGE : BIAS_PRIESTLY);
break;
default:
o_ptr->art_flags1 |= TR1_CHAOTIC;
- /* if (is_scroll) msg_print("It looks very confusing.");*/
if (!artifact_bias)
artifact_bias = BIAS_CHAOS;
break;
case 3:
o_ptr->art_flags3 |= TR3_XTRA_MIGHT;
if (!one_in_(7)) o_ptr->art_flags3 &= ~(TR3_XTRA_SHOTS);
- /* if (is_scroll) msg_print("It looks mightier than before."); */
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_RANGER;
break;
default:
o_ptr->art_flags3 |= TR3_XTRA_SHOTS;
if (!one_in_(7)) o_ptr->art_flags3 &= ~(TR3_XTRA_MIGHT);
- /* if (is_scroll) msg_print("It seems faster!"); */
if (!artifact_bias && one_in_(9))
artifact_bias = BIAS_RANGER;
break;