コード例 #1
0
 private void PerformBuffOnEntity(Entities.Entity entity)
 {
     Entities.Unit unit = (Unit)entity;
     if (mModules != null)
     {
         unit.AddModulesFromData(mModules);
     }
     if (mStatusTags != null)
     {
         foreach (StatusOperationPair pair in mStatusTags)
         {
             if (pair.mShouldAdd)
             {
                 if (!unit.HasStatus(pair.mTag))
                 {
                     unit.AddStatus(pair.mTag);
                 }
             }
             else
             {
                 unit.RemoveStatus(pair.mTag);
             }
         }
     }
     unit.TemporaryHP += mTempHPBuff;
 }
コード例 #2
0
 public override void Message()
 {
     Parent.RemoveModule(ModuleType.NewTurn, this);
     Parent.RemoveStatus("Attached:");
     Parent.RemoveStatus("to " + AttachedToName);
 }