public override int DrawEffect(int xPos, int yPos, GUISkin skin) { yPos = base.DrawEffect(xPos, yPos, skin); #if UNITY_EDITOR m_modType = (EStatMods)EditorGUI.EnumPopup(new Rect(xPos + 150, yPos += 20, 300, 20), m_modType); EditorGUI.LabelField((new Rect(xPos, yPos, 180, 20)), new GUIContent("Mod Type: "), skin.label); m_modifier = EditorGUI.IntField(new Rect(xPos + 150, yPos += 20, 200, 20), m_modifier); EditorGUI.LabelField((new Rect(xPos, yPos, 180, 20)), new GUIContent("Modifier: "), skin.label); EditorUtility.SetDirty(this); #endif return(yPos); }
public AddEntityModEffect(AddEntityModEffect sideEffect) : base(sideEffect) { m_modifier = sideEffect.m_modifier; m_modType = sideEffect.m_modType; }
public void ServerAddModifiers(EStatMods statMod, int modifier) { switch (statMod) { case EStatMods.Health: ServerAddHealth(modifier); break; case EStatMods.MaxHealth: m_healthMax += modifier; break; case EStatMods.Mana: ServerAddMana(modifier); break; case EStatMods.MaxMana: m_manaMax += modifier; break; case EStatMods.SpeedMod: m_speedMod += modifier; break; case EStatMods.CoolDownPercentMod: m_entityAbilities.CoolDownPercentMod += modifier; break; case EStatMods.HealthRegenerationMod: m_healthRegenerationMod += modifier; break; case EStatMods.HealtRegenerationPercentMod: m_healthRegenerationPercentMod += modifier; break; case EStatMods.ArmorMod: EntityAbilities.ArmorMod += modifier; break; case EStatMods.ArmorPercentMod: EntityAbilities.ArmorResPercentMod += modifier; break; case EStatMods.MagicResMod: EntityAbilities.MagicResMod += modifier; break; case EStatMods.MagicResPercentMod: EntityAbilities.MagicResPercentMod += modifier; break; case EStatMods.AttackDamageMod: EntityAbilities.AttackDamageMod += modifier; break; case EStatMods.AttackDamagePercentMod: EntityAbilities.AttackDamagePercentMod += modifier; break; case EStatMods.MagicDamageMod: EntityAbilities.MagicDamageMod += modifier; break; case EStatMods.MagicDamagePercentMod: EntityAbilities.MagicDamagePercentMod += modifier; break; case EStatMods.GoldBonusMod: m_goldBonusMod += modifier; break; default: break; } }