Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2015, 9:37:11 PM (5 years ago)
Author:
fvultier
Message:

Minor improvements. Use of the Munition class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.h

    r10606 r10627  
    7373            inline float getSpread() const
    7474                { return this->spread_; }
     75            inline void setDamageReduction(float damageReduction)
     76                { this->damageReduction_ = (damageReduction >= 0.0f ? damageReduction : 1.0f); }
     77            inline float getDamageReduction() const
     78                { return this->damageReduction_; }
    7579
    7680       private:
     
    8084            float splitTime_; //The time between creation of the projectile and the split of the projectile
    8185            float spread_; //Low spread means that the child projectiles are concentrated in a small area
     86            float damageReduction_; //The damage of a child projectile is reduced by this factor
    8287    };
    8388}
Note: See TracChangeset for help on using the changeset viewer.