@ -5,6 +5,7 @@ import engine.Enum.DispatchChannel;
@@ -5,6 +5,7 @@ import engine.Enum.DispatchChannel;
import engine.Enum.GameObjectType ;
import engine.exception.MsgSendException ;
import engine.gameManager.BuildingManager ;
import engine.gameManager.DbManager ;
import engine.gameManager.SessionManager ;
import engine.gameManager.ZoneManager ;
import engine.math.Bounds ;
@ -130,6 +131,14 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -130,6 +131,14 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
ErrorPopupMsg . sendErrorPopup ( player , 166 ) ; // There is no more favor in this shrine to loot
return true ;
}
//loot elan stones
MobLoot elanStones = new MobLoot ( player , ItemBase . getItemBase ( 1705032 ) , 1 , false ) ;
Item promotedItem = elanStones . promoteToItem ( player ) ;
promotedItem . setNumOfItems ( shrine . getFavors ( ) ) ;
player . getCharItemManager ( ) . addItemToInventory ( promotedItem ) ;
DbManager . ItemQueries . UPDATE_NUM_ITEMS ( promotedItem , promotedItem . getNumOfItems ( ) , 1 ) ;
player . getCharItemManager ( ) . updateInventory ( ) ;
shrine . setFavors ( 0 ) ;
break ;
case WAREHOUSE :
Warehouse warehouse = Warehouse . warehouseByBuildingUUID . get ( building . getObjectUUID ( ) ) ;