Changeset 953

Show
Ignore:
Timestamp:
06/02/08 13:37:00 (6 months ago)
Author:
takkaria
Message:

Add a new effect and one to implement shortly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/effects.c

    r918 r953  
    15521552                } 
    15531553 
     1554                case EF_DRINK_BREATHE: 
     1555                { 
     1556                        const int breath_types[] = 
     1557                        { 
     1558                                GF_FIRE, 80, 
     1559                                GF_COLD, 80, 
     1560                        }; 
     1561 
     1562                        int which = 2 * randint0(N_ELEMENTS(breath_types) / 2); 
     1563                        fire_ball(breath_types[which], dir, breath_types[which + 1], 2); 
     1564                        *ident = TRUE; 
     1565                        return TRUE; 
     1566                } 
     1567 
    15541568                case EF_DRINK_GOOD: 
    15551569                { 
  • trunk/src/list-effects.h

    r918 r953  
    209209 
    210210EFFECT(WONDER,         TRUE,  "creates random and unpredictable effects") 
     211EFFECT(MUTATIONS,      TRUE,  "swaps your stats around randomly") 
    211212 
    212213EFFECT(WAND_BREATH,    TRUE,  "shoots a large ball of one of the base elements for 120-200 damage") 
     
    214215EFFECT(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") 
    215216EFFECT(DRINK_GOOD,     FALSE, NULL) 
     217EFFECT(DRINK_BREATHE,  TRUE,  "causes you to breathe either cold or flames for 80 damage") 
    216218EFFECT(DRINK_SALT,     FALSE, "induces vomiting and paralysis for 4 turns, resulting in severe hunger but also curing poison") 
    217219EFFECT(DRINK_DEATH,    FALSE, "inflicts 5000 points of damage")