KF2-Server-Extension/ServerExt/Classes/Ext_TraitZEDBase.uc
GenZmeY 1d7c441b4c update localization
- more text supports localization;
- move hardcode to english localization file;
- update the Russian localization file.
2021-01-18 00:55:45 +03:00

28 lines
575 B
Ucode

Class Ext_TraitZEDBase extends Ext_TraitBase;
var class<Ext_TraitZEDBase> BaseTrait;
var bool bIsSummoner;
static function bool MeetsRequirements(byte Lvl, Ext_PerkBase Perk)
{
local int i;
// First check level.
if (Perk.CurrentLevel<Default.MinLevel)
return false;
// Then check stats.
if (Lvl==0 && Default.BaseTrait!=None)
{
i = Perk.PerkTraits.Find('TraitType',Default.BaseTrait);
if (i>=0)
return (Perk.PerkTraits[i].CurrentLevel>0);
}
return true;
}
defaultproperties
{
TraitGroup=class'Ext_TGroupMonster'
BaseTrait=class'Ext_TraitZED_Summon'
}