Beispiel #1
0
 private Int32 PointsLeft()
 {
     if (m_dummyChar != null)
     {
         return(m_dummyChar.GetAttributesToPickLeft());
     }
     return(m_realChar.TemporaryAttributePoints);
 }
Beispiel #2
0
        private void UpdateAttributes()
        {
            DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter();
            String         arg = "[000000]";

            if (selectedDummyCharacter.GetAttributesToPickLeft() > 0)
            {
                arg = "[008000]";
            }
            m_PointsLeftLabel.text = LocaManager.GetText("GUI_POINTS_LEFT", arg, selectedDummyCharacter.GetAttributesToPickLeft());
            if (selectedDummyCharacter.Class != EClass.NONE)
            {
                Attributes classAttributes = selectedDummyCharacter.GetClassAttributes();
                GameConfig game            = ConfigManager.Instance.Game;
                m_mightAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_MIGHT"), LocaManager.GetText("CHARACTER_ATTRIBUTE_MIGHT_TT", game.HealthPerMight), EPotionTarget.MIGHT, classAttributes.Might, selectedDummyCharacter.BaseAttributes.Might, selectedDummyCharacter, null);
                m_magicAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_MAGIC"), LocaManager.GetText("CHARACTER_ATTRIBUTE_MAGIC_TT", game.ManaPerMagic), EPotionTarget.MAGIC, classAttributes.Magic, selectedDummyCharacter.BaseAttributes.Magic, selectedDummyCharacter, null);
                m_perceptionAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_PERCEPTION"), LocaManager.GetText("CHARACTER_ATTRIBUTE_PERCEPTION_TT"), EPotionTarget.PERCEPTION, classAttributes.Perception, selectedDummyCharacter.BaseAttributes.Perception, selectedDummyCharacter, null);
                m_destinyAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_DESTINY"), LocaManager.GetText("CHARACTER_ATTRIBUTE_DESTINY_TT"), EPotionTarget.DESTINY, classAttributes.Destiny, selectedDummyCharacter.BaseAttributes.Destiny, selectedDummyCharacter, null);
                m_vitalityAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_VITALITY"), LocaManager.GetText("CHARACTER_ATTRIBUTE_VITALITY_TT", selectedDummyCharacter.GetHPPerVitality()), EPotionTarget.VITALITY, classAttributes.Vitality, selectedDummyCharacter.BaseAttributes.Vitality, selectedDummyCharacter, null);
                m_spiritAC.Init(LocaManager.GetText("CHARACTER_ATTRIBUTE_SPIRIT"), LocaManager.GetText("CHARACTER_ATTRIBUTE_SPIRIT_TT", game.ManaPerSpirit), EPotionTarget.SPIRIT, classAttributes.Spirit, selectedDummyCharacter.BaseAttributes.Spirit, selectedDummyCharacter, null);
                m_health.text = selectedDummyCharacter.BaseAttributes.HealthPoints.ToString();
                m_mana.text   = selectedDummyCharacter.BaseAttributes.ManaPoints.ToString();
            }
        }