コード例 #1
0
 public override void Notify_QuestSignalReceived(Signal signal)
 {
     base.Notify_QuestSignalReceived(signal);
     if (!(signal.tag == inSignal))
     {
         return;
     }
     for (int i = 0; i < pawns.Count; i++)
     {
         if (pawns[i].equipment != null)
         {
             foreach (ThingWithComps item in pawns[i].equipment.AllEquipmentListForReading)
             {
                 CompBiocodableWeapon comp = item.GetComp <CompBiocodableWeapon>();
                 if (comp != null && !comp.Biocoded)
                 {
                     comp.CodeFor(pawns[i]);
                 }
             }
         }
     }
 }