Project Zomboid Lua Docs 42.13.0
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ButcheringUtil Class Reference

Static Public Member Functions

static string butcherAnimalFromGround (IsoDeadBody carcass, IsoPlayer player, boolean keepCorpse)
static string getLeather (string name)
static string getHead (string name)
static string getSkull (string name)
static string addAnimalPart (umbrella::AnimalPartsTable part, IsoPlayer player, IsoDeadBody carcass, boolean fromGround)
static string getCarcassName (IsoDeadBody carcass)
static string giveMeatModified (umbrella::AnimalMeatDefinition meatDef, integer nb, IsoPlayer player, number meatRatio, IsoDeadBody carcass, boolean fromGround, boolean rotten, number deathAge)
static number getPartChance (integer baseChance, number size, number meatRatio, IsoPlayer player)
static string modifyMeat (InventoryItem item, number size, number meatRatio, number hungerBoost, boolean rotten, number deathAge)
static void getAnimalBones (IsoDeadBody carcass, IsoPlayer player)
static umbrella::AnimalPartsTable[] getAllBonesDef (string name)
static umbrella::AnimalPartsTable[] getAllPartsDef (string name)
static umbrella::AnimalPartsDefinition getAnimalDef (string name)
static unknown onAddedCorpseOnHook (IsoButcherHook hook, IsoAnimal|AnimalInventoryItem|IsoDeadBody corpse, IsoPlayer character)
static IsoAnimal IsoDeadBody createCorpseFromItem (IsoAnimal|AnimalInventoryItem|IsoDeadBody item, IsoPlayer chr)
static void createAnimalForHook (IsoButcherHook hook, IsoAnimal|IsoDeadBody newCorpse)
static unknown onRemoveCorpseFromHook (IsoButcherHook hook, IsoAnimal animal)
static boolean updateCorpseDatas (table|ISButcherHookUI dataTable, IsoAnimal animal, IsoButcherHook hook)
static ArrayList< InventoryItem > getBuckets (IsoPlayer character)
static boolean isHookUsingSameCharacter (IsoButcherHook hook, IsoPlayer character)
static void setUsingPlayerForHook (IsoButcherHook hook, IsoPlayer character)

Member Function Documentation

◆ addAnimalPart()

string ButcheringUtil::addAnimalPart ( umbrella::AnimalPartsTable part,
IsoPlayer player,
IsoDeadBody carcass,
boolean fromGround )
static

◆ butcherAnimalFromGround()

string ButcheringUtil::butcherAnimalFromGround ( IsoDeadBody carcass,
IsoPlayer player,
boolean keepCorpse )
static

◆ createAnimalForHook()

void ButcheringUtil::createAnimalForHook ( IsoButcherHook hook,
IsoAnimal|IsoDeadBody newCorpse )
static

◆ createCorpseFromItem()

IsoAnimal IsoDeadBody ButcheringUtil::createCorpseFromItem ( IsoAnimal|AnimalInventoryItem|IsoDeadBody item,
IsoPlayer chr )
static

◆ getAllBonesDef()

umbrella::AnimalPartsTable[] ButcheringUtil::getAllBonesDef ( string name)
static

◆ getAllPartsDef()

umbrella::AnimalPartsTable[] ButcheringUtil::getAllPartsDef ( string name)
static

◆ getAnimalBones()

void ButcheringUtil::getAnimalBones ( IsoDeadBody carcass,
IsoPlayer player )
static

◆ getAnimalDef()

umbrella::AnimalPartsDefinition ButcheringUtil::getAnimalDef ( string name)
static

◆ getBuckets()

ArrayList< InventoryItem > ButcheringUtil::getBuckets ( IsoPlayer character)
static

◆ getCarcassName()

string ButcheringUtil::getCarcassName ( IsoDeadBody carcass)
static

◆ getHead()

string ButcheringUtil::getHead ( string name)
static

◆ getLeather()

string ButcheringUtil::getLeather ( string name)
static

◆ getPartChance()

number ButcheringUtil::getPartChance ( integer baseChance,
number size,
number meatRatio,
IsoPlayer player )
static

◆ getSkull()

string ButcheringUtil::getSkull ( string name)
static

◆ giveMeatModified()

string ButcheringUtil::giveMeatModified ( umbrella::AnimalMeatDefinition meatDef,
integer nb,
IsoPlayer player,
number meatRatio,
IsoDeadBody carcass,
boolean fromGround,
boolean rotten,
number deathAge )
static

◆ isHookUsingSameCharacter()

boolean ButcheringUtil::isHookUsingSameCharacter ( IsoButcherHook hook,
IsoPlayer character )
static

◆ modifyMeat()

string ButcheringUtil::modifyMeat ( InventoryItem item,
number size,
number meatRatio,
number hungerBoost,
boolean rotten,
number deathAge )
static

◆ onAddedCorpseOnHook()

unknown ButcheringUtil::onAddedCorpseOnHook ( IsoButcherHook hook,
IsoAnimal|AnimalInventoryItem|IsoDeadBody corpse,
IsoPlayer character )
static

◆ onRemoveCorpseFromHook()

unknown ButcheringUtil::onRemoveCorpseFromHook ( IsoButcherHook hook,
IsoAnimal animal )
static

◆ setUsingPlayerForHook()

void ButcheringUtil::setUsingPlayerForHook ( IsoButcherHook hook,
IsoPlayer character )
static

◆ updateCorpseDatas()

boolean ButcheringUtil::updateCorpseDatas ( table|ISButcherHookUI dataTable,
IsoAnimal animal,
IsoButcherHook hook )
static

The documentation for this class was generated from the following file: