И так что бы дать понятие Potion Effect
Ищем Файл BasePotion.cs:
\Scripts\Items\Skill Items\Magical\Potions
Заходим в файл BasePotion.cs
и добовляем в enum PotionEffect
Код
SmallMana, // New Potion 'Mana'
LargeMana, // New Potion 'Mana'
Intelligence, //New Potion'Int'
GreaterIntelligence, //New Potion 'Int'
Вот как это выглядит:
Код
public enum PotionEffect
{
Nightsight,
CureLesser,
Cure,
CureGreater,
Agility,
AgilityGreater,
Strength,
StrengthGreater,
PoisonLesser,
Poison,
PoisonGreater,
PoisonDeadly,
Refresh,
RefreshTotal,
HealLesser,
Heal,
HealGreater,
ExplosionLesser,
Explosion,
SmallMana, // New Potion 'Mana'
LargeMana, // New Potion 'Mana'
Intelligence, //New Potion'Int'
GreaterIntelligence, //New Potion 'Int'
ExplosionGreater
}
Далее если вы хотите хранить зелья в кегах
Ищем Файл PotionKeg.cs
\Scripts\Items\Skill Items\Magical\Potions
Заходим в PotionKeg.cs
Ищем: Строку public BasePotion FillBottle()
Добовляем:
Код
case PotionEffect.LargeMana: return new LargeManaRegeneration();
case PotionEffect.SmallMana: return new SmallManaRegeneration();
case PotionEffect.GreaterIntelligence: return new GreaterIntelligence();
case PotionEffect.Intelligence: return new IntelligencePotion();
Вот как это выглядит:
Код
public BasePotion FillBottle()
{
switch ( m_Type )
{
default:
case PotionEffect.Nightsight: return new NightSightPotion();
case PotionEffect.CureLesser: return new LesserCurePotion();
case PotionEffect.Cure: return new CurePotion();
case PotionEffect.CureGreater: return new GreaterCurePotion();
case PotionEffect.Agility: return new AgilityPotion();
case PotionEffect.AgilityGreater: return new GreaterAgilityPotion();
case PotionEffect.Strength: return new StrengthPotion();
case PotionEffect.StrengthGreater: return new GreaterStrengthPotion();
case PotionEffect.PoisonLesser: return new LesserPoisonPotion();
case PotionEffect.Poison: return new PoisonPotion();
case PotionEffect.PoisonGreater: return new GreaterPoisonPotion();
case PotionEffect.PoisonDeadly: return new DeadlyPoisonPotion();
case PotionEffect.LargeMana: return new LargeManaRegeneration();
case PotionEffect.SmallMana: return new SmallManaRegeneration();
case PotionEffect.GreaterIntelligence: return new GreaterIntelligence();
case PotionEffect.Intelligence: return new IntelligencePotion();
case PotionEffect.Refresh: return new RefreshPotion();
case PotionEffect.RefreshTotal: return new TotalRefreshPotion();
case PotionEffect.HealLesser: return new LesserHealPotion();
case PotionEffect.Heal: return new HealPotion();
case PotionEffect.HealGreater: return new GreaterHealPotion();
case PotionEffect.ExplosionLesser: return new LesserExplosionPotion();
case PotionEffect.Explosion: return new ExplosionPotion();
case PotionEffect.ExplosionGreater: return new GreaterExplosionPotion();
}
}