Ejemplo n.º 1
0
        public void Blessing(PlayerEntity playerEntity, int donationAmount)
        {
            int boost = FormulaHelper.CalculateTempleBlessing(donationAmount, GetReputation(playerEntity));

            if (boost > 0)
            {
                DFCareer.Stats stat = BlessingStat();
                if (stat != NoStat)
                {
                    // Apply stat blessing
                    // TODO - wait for stat effects with timeouts to be implemented and use them
                    Debug.Log("Blessing: boost stat " + stat);
                }
                else
                {
                    if (deity == Divines.Stendarr)
                    {
                        Debug.Log("Blessing: boost legal rep");
                    }
                    else if (deity == Divines.Zenithar)
                    {
                        Debug.Log("Blessing: boost mercantile skill");
                    }
                }
                DaggerfallUI.MessageBox(templeData[deity].blessingMsgId);
            }
        }