Class Ext_TraitZED_SummonExt extends Ext_TraitZEDBase abstract; static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data) { local int i; local byte MaxLevel; MaxLevel = 0; for(i=0; i0 && Class(Perk.PerkTraits[i].TraitType)!=None && !Class(Perk.PerkTraits[i].TraitType).Default.bIsSummoner) Perk.PerkTraits[i].TraitType.Static.ApplyEffectOn(Player,Perk,Level,Data); } static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data) { local Ext_T_ZEDHelper H; foreach Player.ChildActors(class'Ext_T_ZEDHelper',H) if(H.bIsExtra) H.Destroy(); } static final function AddHelperType(byte Lv, KFPawn_Human Player) { local Ext_T_ZEDHelper H; H = Player.Spawn(class'Ext_T_ZEDHelper',Player); if(H!=None) { H.CurLevel = Lv; H.bIsExtra = true; } } defaultproperties { bIsSummoner=true NumLevels=4 DefLevelCosts(0)=100 DefLevelCosts(1)=40 DefLevelCosts(2)=80 DefLevelCosts(3)=50 DefMinLevel=100 }