Class LootSystem

All Implemented Interfaces:
Disposable, KryoSerializable

public final class LootSystem extends GameSystem
  • Field Details

    • REWARDING_AD_VIEW_BONUSES

      public static final int[] REWARDING_AD_VIEW_BONUSES
    • ENCRYPTED_CASE_GLOBAL_INTERVAL

      public static final float ENCRYPTED_CASE_GLOBAL_INTERVAL
      See Also:
    • random

      public RandomXS128 random
    • inventoryStatistics

      public ProgressManager.InventoryStatistics inventoryStatistics
    • lootFillsByRarity

      public int[] lootFillsByRarity
      Loot fill statistics by rarity. Stores the number of loot filling events and not the actual amount of items.
    • minersMineOnlyLegendaries

      public boolean minersMineOnlyLegendaries
  • Constructor Details

    • LootSystem

      public LootSystem()
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
      Overrides:
      write in class Registrable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
      Overrides:
      read in class Registrable
    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • setup

      public void setup()
      Description copied from class: GameSystem
      Performs the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.
      Overrides:
      setup in class GameSystem
    • getActiveSecondsPlayed

      public float getActiveSecondsPlayed()
    • update

      public void update(float deltaTime)
      Overrides:
      update in class GameSystem
    • getPapersFromFlamethrowerUltBank

      public int getPapersFromFlamethrowerUltBank(int requestedPapers)
      Draw papers from the FT ult bank.
      Parameters:
      requestedPapers - how many papers were requested by FT
      Returns:
      actually issued papers, can be zero if bank is empty
    • getRewardingAdViews

      public int getRewardingAdViews()
    • getTimeToRewardingAds

      public float getTimeToRewardingAds(boolean withGlobalDelay)
      Returns:
      -1, если следующего видео не будет
    • isRewardingAdAvailableInReality

      public boolean isRewardingAdAvailableInReality()
    • isRewardingAdAvailableByState

      public boolean isRewardingAdAvailableByState()
    • viewRewardingAdAction

      public void viewRewardingAdAction()
    • getRewardingAdsLootMultiplier

      public float getRewardingAdsLootMultiplier()
    • calculateBaseLootCountGraph

      public static float calculateBaseLootCountGraph(float timePlayed)
    • main

      public static void main(String[] args)
    • canGiveChests

      public boolean canGiveChests()
    • forceFillWithLoot

      public ItemStack forceFillWithLoot(Enemy enemy)
    • fillWithLoot

      public void fillWithLoot(Enemy enemy)
      Вызывается при спавне
    • addLoot

      @Null public ItemStack addLoot(Enemy enemy, Item item, int count)
      Use this method to add loot and trigger an event
      Returns:
      stack the item has been added into or null if event has been canceled
    • getLootSlots

      public int getLootSlots(MinerType minerType)
    • getSourceMinedItems

      @Null public Array<ItemStack> getSourceMinedItems(int x, int y)
    • getOrCreateSourceMinedItems

      public Array<ItemStack> getOrCreateSourceMinedItems(int x, int y)
    • profileUpdate

      public boolean profileUpdate()
      Description copied from class: GameSystem
      Should the update() method be rendered on the debug overlay
      Overrides:
      profileUpdate in class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem