Table of Contents

Class LootGenerator

Namespace
GrindFest
Assembly
GrindFest.dll
public class LootGenerator : Singleton<LootGenerator>
Inheritance
object
LootGenerator
Inherited Members

Fields

Books
CursedCoinCooldown
CursedCoinPrefab
ItemQualityProbabilities
ItemQualityProbabilitiesTemp
LargeGoldPilePrefabs
SingleGoldPiecePrefab
SmallGoldPilePrefabs
skillBookPrefab

Methods

Awake()
DropGold(Vector3, int, float)
DropRandomWeapon(int, int, Vector3, float)
GenerateItem(ItemBehaviour, float, ItemRank, int)
GenerateRandomLoot(LootCategory, int, int)
GenerateRandomSkillScroll()
GetRandomSkill(int)

Pick a random learnable skill at or slightly above the hero's level, weighted by skill rarity. Skips already-maxed skills.

GetRandomSpell(int)
GetRandomWeaponPrefab(int)
GetRandomWeaponPrefab(int, out ContentDef)
GetSkillByType(Type)

The shared prototype ("definition") of a skill type. Skills are plain classes now, so the type is the identity: no prefab to look up and no content definition to carry the data.