Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UT2004RPG.AbilityShieldStrength


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
class AbilityShieldStrength extends RPGAbility
    abstract;

static simulated function int Cost(RPGPlayerDataObject Data, int CurrentLevel)
{
    if (Data.HealthBonus < 100)
        return 0;
    else
        return Super.Cost(Data, CurrentLevel);
}

static simulated function ModifyPawn(Pawn Other, int AbilityLevel)
{
    if (xPawn(Other) != None)
        xPawn(Other).ShieldStrengthMax = xPawn(Other).default.ShieldStrengthMax + 25 * AbilityLevel;
}

defaultproperties
{
    AbilityName="Shields Up!"
    Description="Increases your maximum shield by 25 per level. You must have a Health Bonus stat of 100 before you can purchase this ability. (Max Level: 4)"
    StartingCost=20
    CostAddPerLevel=5
    MaxLevel=4
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 24/7/2006 19:49:20.000 - Creation time: Wed 7/2/2007 19:16:32.250 - Created with UnCodeX