コード例 #1
0
ファイル: RollTable.cs プロジェクト: caesuric/familiar-quest
 public void Pad(RollEntry lastEntry = null)
 {
     if (lastEntry == null)
     {
         rollUnder = chance;
     }
     else
     {
         rollUnder = lastEntry.rollUnder + chance;
     }
 }
コード例 #2
0
        public void RemoveEntry(RollEntry entry)
        {
            if (entry == null)
            {
                Debug.Log("Cant Remove NULL RollEntry");
            }

            List <RollEntry> removeList = new List <RollEntry>()
            {
                entry
            };

            _TableModel.RemoveElements(removeList);
        }
コード例 #3
0
 bool NotRecentlyZapped(RollEntry entry)
 {
     return(entry.GetContainedClass <Health>().RecentlyDamaged);
 }
コード例 #4
0
 public int IndexOfItem(RollEntry re)
 {
     return(_TableModel.IndexOfItem(re));
 }