예제 #1
0
 public bool IsEnergy(IUnitDef ud)
 {
     if (ud.needGeo)
     {
         return(false);
     }
     if (ud.energyUpkeep < -1)
     {
         return(true);
     }
     if ((ud.windGenerator > 0) && (aicallback.GetMaxWind() > 9))
     {
         return(true);
     }
     if (ud.tidalGenerator > 0)
     {
         return(true);
     }
     if (ud.energyMake > 5)
     {
         return(true);
     }
     return(false);
 }