예제 #1
0
 public Sprite getImageFore()
 {
     if (unit != null && unit.definesForeground())
     {
         return(unit.getPortraitForeground());
     }
     if (World.advancedEdition && map.param.option_useAdvancedGraphics == 1)
     {
         if (state == personState.broken)
         {
             return(map.world.textureStore.person_advBroken);
         }
         else if (state == personState.enthralled || state == personState.enthralledAgent)
         {
             return(map.world.textureStore.person_advEnthralled);
         }
         else
         {
             return(map.world.textureStore.person_advClear);
         }
     }
     if (imgIndFore == -1)
     {
         imgIndFore = Eleven.random.Next(map.world.textureStore.layerFore.Count);
     }
     return(map.world.textureStore.layerFore[imgIndFore]);
 }