Class ItemPickerJava
java.lang.Object
zombie.inventory.ItemPickerJava
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerRoom> static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.VehicleDistribution> static final HashMap<String, ItemPickerJava.ItemPickerUpgradeWeapons> static final ArrayList<ItemPickerJava.ItemPickerUpgradeWeapons> static float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddVehicleKeyAsLoot(InventoryItem spawnItem, ItemContainer container) static booleancontainerHasZone(ItemContainer container, String zone) static voidstatic voiddoRollItem(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container, float zombieDensity, IsoGameCharacter character, boolean doItemContainer, ItemPickerJava.ItemPickerRoom roomDist) static voidfillContainer(ItemContainer container, IsoPlayer player) static voidfillContainerType(ItemPickerJava.ItemPickerRoom roomDist, ItemContainer container, String roomName, IsoGameCharacter character) static floatgetActualSpawnChance(ItemPickerJava.ItemPickerItem item, IsoGameCharacter character, ItemContainer container, float zombieDensity, boolean isJunk) static floatgetAdjustedZombieDensity(float zombieDensity, Item scriptItem, boolean isJunk) static floatgetBaseChance(ItemPickerJava.ItemPickerItem item, IsoGameCharacter character, boolean isJunk) static floatgetBaseChanceMultiplier(IsoGameCharacter character, boolean isJunk, Item scriptItem) static StringgetContainerZombiesType(ItemContainer container) getItemContainer(String room, String container, String proceduralName, boolean junk) static gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> static StringgetLootDebugString(IsoObject object) static floatgetLootModifier(String itemname) static floatgetLootModifier(String itemName, boolean isJunk) static floatgetLootModifierFromType(String lootType) static StringgetLootType(Item item) static StringgetSquareBuildingName(IsoGridSquare square) static StringgetSquareRegion(IsoGridSquare square) static StringgetSquareZombiesType(IsoGridSquare square) static floatgetZombieDensityFactor(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container) static booleanhasDistributionForContainerInRoom(String containerType, String roomdef) static booleanhasDistributionForRoom(String roomdef) static voidstatic booleanstatic voiditemSpawnSanityCheck(InventoryItem spawnItem) static voiditemSpawnSanityCheck(InventoryItem spawnItem, ItemContainer container) static voidkeyNamerBuilding(InventoryItem item, IsoGridSquare square) static voidonCreateRegion(InventoryItem item, String region) static voidParse()static voidrollContainerItem(InventoryContainer bag, IsoGameCharacter character, ItemPickerJava.ItemPickerContainer containerDist) static voidrollItem(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container, boolean doItemContainer, IsoGameCharacter character, ItemPickerJava.ItemPickerRoom roomDist) static voidrotItem(InventoryItem spawnItem) static voidspawnLootCarKey(InventoryItem spawnItem, ItemContainer container) static voidspawnLootCarKey(InventoryItem spawnItem, ItemContainer container, ItemContainer outtermost) static booleansquareHasZone(IsoGridSquare square, String zone) static voidtrashItem(InventoryItem spawnItem) static voidtrashItemLooted(InventoryItem spawnItem) static voidtrashItemRats(InventoryItem spawnItem) static InventoryItemtryAddItemToContainer(ItemContainer container, String itemType, ItemPickerJava.ItemPickerContainer containerDist) static voidstatic voidwearDownItem(InventoryItem spawnItem)
-
Field Details
-
zombieDensityCap
public static float zombieDensityCap -
NoContainerFillRooms
-
WeaponUpgrades
-
WeaponUpgradeMap
-
rooms
-
containers
public static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> containers -
ProceduralDistributions
public static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> ProceduralDistributions -
VehicleDistributions
public static final gnu.trove.map.hash.THashMap<String, ItemPickerJava.VehicleDistribution> VehicleDistributions
-
-
Constructor Details
-
ItemPickerJava
public ItemPickerJava()
-
-
Method Details
-
getItemPickerContainers
public static gnu.trove.map.hash.THashMap<String, ItemPickerJava.ItemPickerContainer> getItemPickerContainers() -
Parse
public static void Parse() -
InitSandboxLootSettings
public static void InitSandboxLootSettings() -
fillContainer
-
fillContainerType
public static void fillContainerType(ItemPickerJava.ItemPickerRoom roomDist, ItemContainer container, String roomName, IsoGameCharacter character) -
tryAddItemToContainer
public static InventoryItem tryAddItemToContainer(ItemContainer container, String itemType, ItemPickerJava.ItemPickerContainer containerDist) -
rollItem
public static void rollItem(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container, boolean doItemContainer, IsoGameCharacter character, ItemPickerJava.ItemPickerRoom roomDist) -
doRollItem
public static void doRollItem(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container, float zombieDensity, IsoGameCharacter character, boolean doItemContainer, ItemPickerJava.ItemPickerRoom roomDist) -
rollContainerItem
public static void rollContainerItem(InventoryContainer bag, IsoGameCharacter character, ItemPickerJava.ItemPickerContainer containerDist) -
getLootModifier
-
getLootModifierFromType
-
getLootType
-
updateOverlaySprite
-
doOverlaySprite
-
getItemContainer
public static ItemPickerJava.ItemPickerContainer getItemContainer(String room, String container, String proceduralName, boolean junk) -
keyNamerBuilding
-
trashItem
-
trashItemLooted
-
trashItemRats
-
wearDownItem
-
rotItem
-
spawnLootCarKey
-
spawnLootCarKey
public static void spawnLootCarKey(InventoryItem spawnItem, ItemContainer container, ItemContainer outtermost) -
isGoodKey
-
addVehicleKeyAsLoot
-
containerHasZone
-
squareHasZone
-
getContainerZombiesType
-
getSquareZombiesType
-
getSquareBuildingName
-
getSquareRegion
-
getBaseChance
public static float getBaseChance(ItemPickerJava.ItemPickerItem item, IsoGameCharacter character, boolean isJunk) -
getBaseChanceMultiplier
public static float getBaseChanceMultiplier(IsoGameCharacter character, boolean isJunk, Item scriptItem) -
getLootModifier
-
getAdjustedZombieDensity
-
getActualSpawnChance
public static float getActualSpawnChance(ItemPickerJava.ItemPickerItem item, IsoGameCharacter character, ItemContainer container, float zombieDensity, boolean isJunk) -
getZombieDensityFactor
public static float getZombieDensityFactor(ItemPickerJava.ItemPickerContainer containerDist, ItemContainer container) -
itemSpawnSanityCheck
-
itemSpawnSanityCheck
-
getLootDebugString
-
hasDistributionForRoom
-
hasDistributionForContainerInRoom
-
onCreateRegion
-