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

DruidsRPGcvs.ArtifactMakeSuperHealer


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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
class ArtifactMakeSuperHealer extends DruidArtifactMakeMagicWeapon;

var int AbilityLevel;
var int MaxHealth;
var float EXPMultiplier;

function int getMaxHealth()
{
    if(MaxHealth == 0)
        return class'RW_Healer'.default.MaxHealth;
    else
        return MaxHealth;
}

function float getEXPMultiplier()
{
    if(EXPMultiplier == 0.0)
        return class'RW_Healer'.default.EXPMultiplier;
    else
        return EXPMultiplier;
}

function int getCost()
{
    return 10;
}

function bool shouldBreak()
{
    return false;
}

function constructionFinished(RPGWeapon result)
{
    local RW_SuperHealer SuperHealer;

    if(RW_SuperHealer(result) != None)
    {
        SuperHealer = RW_SuperHealer(Instigator.FindInventoryType(class'RW_SuperHealer'));
        if(SuperHealer != None)
        {
            SuperHealer.AMSH = None;
            if(SuperHealer.ModifiedWeapon != Result.ModifiedWeapon)
                SuperHealer.Destroy();
        }
        RW_SuperHealer(result).AMSH = Self;
    }
}

function class<RPGWeapon> GetRandomWeaponModifier(class<Weapon> WeaponType, Pawn Other)
{
    if(class'RW_SuperHealer'.static.AllowedFor(WeaponType, Other))
        return class'RW_SuperHealer';
    return class'RPGWeapon';
}

exec function TossArtifact()
{
    //do nothing. This artifact cant be thrown
}

function DropFrom(vector StartLocation)
{
    if (bActive)
        GotoState('');
    bActive = false;

    Destroy();
    Instigator.NextItem();
}

defaultproperties
{
      CostPerSec=25
      MinActivationTime=0.000001
      IconMaterial=Combiner'XGameTextures.SuperPickups.DOMPabBc'
      ItemName="Medic Weapon Maker"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Thu 19/1/2006 01:43:22.000 - Creation time: Wed 7/2/2007 19:16:33.687 - Created with UnCodeX