Changeset 979

Show
Ignore:
Timestamp:
07/05/08 11:20:34 (2 months ago)
Author:
takkaria
Message:

Implement the mushroom of sprinting.
Forget about making a potion of mutations.
Add a potion type for the potion of dragon breath.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/edit/object.txt

    r967 r979  
    23582358E:DRINK_SALT 
    23592359 
     2360 
     2361### Weird one ### 
     2362 
     2363N:363:Dragon Breath 
     2364G:!:d 
     2365I:75:58:0 
     2366W:0:0:4:0 
     2367M:100:1d2 
     2368A:10:40 to 100 
     2369F:EASY_KNOW 
     2370E:DRINK_BREATH 
    23602371 
    23612372 
  • trunk/src/defines.h

    r969 r979  
    441441        TMD_SINFRA, TMD_OPP_ACID, TMD_OPP_ELEC, TMD_OPP_FIRE, TMD_OPP_COLD, 
    442442        TMD_OPP_POIS, TMD_OPP_CONF, TMD_AMNESIA, TMD_TELEPATHY, TMD_STONESKIN, 
    443         TMD_TERROR, 
     443        TMD_TERROR, TMD_SPRINT, 
    444444 
    445445        TMD_MAX 
  • trunk/src/effects.c

    r953 r979  
    15521552                } 
    15531553 
    1554                 case EF_DRINK_BREATHE
     1554                case EF_DRINK_BREATH
    15551555                { 
    15561556                        const int breath_types[] = 
     
    16741674                } 
    16751675 
    1676 #if 0 
    16771676                case EF_SHROOM_SPRINTING: 
    16781677                { 
    1679                         /* 
    1680                         +10 speed boost. 
    1681                         if player already fast, double current duration and add bad effect 
    1682                         otherwise 2*!Speed duration, then bad effect 
    1683                         */ 
    1684                         return TRUE; 
    1685                 } 
    1686 #endif 
     1678                        if (inc_timed(TMD_SPRINT, 100)) *ident = TRUE; 
     1679                        return TRUE; 
     1680                } 
    16871681 
    16881682                case EF_SHROOM_PURGING: 
  • trunk/src/list-effects.h

    r953 r979  
    209209 
    210210EFFECT(WONDER,         TRUE,  "creates random and unpredictable effects") 
    211 EFFECT(MUTATIONS,      TRUE,  "swaps your stats around randomly") 
    212211 
    213212EFFECT(WAND_BREATH,    TRUE,  "shoots a large ball of one of the base elements for 120-200 damage") 
     
    215214EFFECT(STAFF_HOLY,     FALSE, "inflicts damage on evil creatures you can see, cures 50 hit points, heals all temporary effects and grants you protection from evil") 
    216215EFFECT(DRINK_GOOD,     FALSE, NULL) 
    217 EFFECT(DRINK_BREATHE,  TRUE,  "causes you to breathe either cold or flames for 80 damage") 
     216EFFECT(DRINK_BREATH,   TRUE,  "causes you to breathe either cold or flames for 80 damage") 
    218217EFFECT(DRINK_SALT,     FALSE, "induces vomiting and paralysis for 4 turns, resulting in severe hunger but also curing poison") 
    219218EFFECT(DRINK_DEATH,    FALSE, "inflicts 5000 points of damage") 
  • trunk/src/obj-make.c

    r938 r979  
    13701370bool make_object(object_type *j_ptr, int lev, bool good, bool great) 
    13711371{ 
    1372         int k_idx, i; 
     1372        int k_idx = 0; 
     1373        int i; 
    13731374        int tries = 1; 
    13741375 
  • trunk/src/xtra1.c

    r930 r979  
    11331133 
    11341134        /* Temporary "fast" */ 
    1135         if (p_ptr->timed[TMD_FAST]
     1135        if (p_ptr->timed[TMD_FAST] || p_ptr->timed[TMD_SPRINT]
    11361136                p_ptr->pspeed += 10; 
    11371137 
  • trunk/src/xtra2.c

    r942 r979  
    7575        { "Your skin turns to stone.", "A fleshy shade returns to your skin.", 0, PU_BONUS, MSG_GENERIC }, 
    7676        { "You feel the need to run away, and fast!", "The urge to run dissipates.", 0, PU_BONUS, MSG_AFRAID }, 
     77        { "You start sprinting.", "You suddenly stop sprinting.", 0, PU_BONUS, MSG_SPEED }, 
    7778}; 
    7879 
     
    118119                        message(MSG_RECOVER, 0, effect->on_end); 
    119120                        notice = TRUE; 
    120                 } 
    121         } 
     121 
     122                        if (idx == TMD_SPRINT) 
     123                                inc_timed(TMD_SLOW, 100); 
     124                } 
     125        } 
     126 
    122127 
    123128        /* Use the value */ 
  • trunk/src/xtra3.c

    r926 r979  
    655655        { TMD_POISONED,  S("Poisoned"),   TERM_ORANGE }, 
    656656        { TMD_PROTEVIL,  S("ProtEvil"),   TERM_L_GREEN }, 
     657        { TMD_SPRINT,    S("Sprint"),     TERM_L_GREEN }, 
    657658        { TMD_TELEPATHY, S("ESP"),        TERM_L_BLUE }, 
    658659        { TMD_INVULN,    S("Invuln"),     TERM_L_GREEN },