Package com.prineside.tdi2.items
Class LootBoostItem
java.lang.Object
com.prineside.tdi2.Item
com.prineside.tdi2.items.LootBoostItem
- All Implemented Interfaces:
 KryoSerializable,Item.UsableItem
Используется с началом игры
 Дает бонус +50% к кол-ву лута
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.prineside.tdi2.Item
Item.D, Item.Factory<T extends Item>, Item.UsableItem - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final int - 
Method Summary
Modifier and TypeMethodDescriptionbooleangenerateIcon(float size, boolean withShadow) getTitle()getType()booleanbooleanbooleanuseItem()booleanMethods inherited from class com.prineside.tdi2.Item
addSellItems, addSellItemsMultiplied, affectedByLuckyWheelMultiplier, canBeSold, canBeUnpacked, cpy, fillItemCreationForm, fillWithInfo, from, fromJson, getData, getDataOfType, getIconDrawable, getPriceInAcceleratorsForResearchReset, getSortingScore, openPack, read, sameAs, toJson, toJsonString, write 
- 
Field Details
- 
EFFECT_DURATION
public static final float EFFECT_DURATION- See Also:
 
 - 
PERCENTAGE_BONUS
public static final int PERCENTAGE_BONUS- See Also:
 
 
 - 
 - 
Method Details
- 
isAffectedByDoubleGain
public boolean isAffectedByDoubleGain()- Overrides:
 isAffectedByDoubleGainin classItem
 - 
getType
 - 
getCategory
- Specified by:
 getCategoryin classItem
 - 
getSubcategory
- Specified by:
 getSubcategoryin classItem
 - 
getTitle
 - 
getDescription
- Specified by:
 getDescriptionin classItem
 - 
getAnalyticName
- Overrides:
 getAnalyticNamein classItem
 - 
autoUseWhenAdded
public boolean autoUseWhenAdded()- Specified by:
 autoUseWhenAddedin interfaceItem.UsableItem- Returns:
 - true if item should be automatically used when added to the inventory
 
 - 
useItem
public boolean useItem()- Specified by:
 useItemin interfaceItem.UsableItem- Returns:
 - true if item can be used and consumed
 
 - 
useItemNeedsConfirmation
public boolean useItemNeedsConfirmation()- Specified by:
 useItemNeedsConfirmationin interfaceItem.UsableItem- Returns:
 - true if player should be asked before item can be used (misclick protection)
 
 - 
getRarity
 - 
isCountable
public boolean isCountable()- Specified by:
 isCountablein classItem- Returns:
 - true if ItemStack.count is being accounted for
 
 - 
generateIcon
- Specified by:
 generateIconin classItem
 
 -