Package com.prineside.tdi2.systems
Class LootSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.LootSystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
int[]
Loot fill statistics by rarity.boolean
static final int[]
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUse this method to add loot and trigger an eventboolean
static float
calculateBaseLootCountGraph
(float timePlayed) boolean
void
fillWithLoot
(Enemy enemy) Вызывается при спавнеforceFillWithLoot
(Enemy enemy) float
int
getLootSlots
(MinerType minerType) getOrCreateSourceMinedItems
(int x, int y) int
getPapersFromFlamethrowerUltBank
(int requestedPapers) Draw papers from the FT ult bank.float
int
getSourceMinedItems
(int x, int y) float
getTimeToRewardingAds
(boolean withGlobalDelay) boolean
boolean
static void
boolean
Should the update() method be rendered on the debug overlayvoid
void
setup()
Performs the initial configuration of the system.void
update
(float deltaTime) void
void
Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestore
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
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
-
inventoryStatistics
-
lootFillsByRarity
public int[] lootFillsByRarityLoot 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
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classRegistrable
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
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 classGameSystem
-
getActiveSecondsPlayed
public float getActiveSecondsPlayed() -
update
public void update(float deltaTime) - Overrides:
update
in classGameSystem
-
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
-
canGiveChests
public boolean canGiveChests() -
forceFillWithLoot
-
fillWithLoot
Вызывается при спавне -
addLoot
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
-
getSourceMinedItems
-
getOrCreateSourceMinedItems
-
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystem
Should the update() method be rendered on the debug overlay- Overrides:
profileUpdate
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-