summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Villager.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-29Improved farmer AI & Fixed entity loading functions (#5351)Persson-dev1-71/+242
* Allow villagers to pickup items * Add farmer villager harvesting * Use of auto keyword * Using for loop to check adjacent crops * Show particules when farmer harvest * Fix area comment * Move constants to header file * Removing unnecessary semicolon * Initialization of CropBlockType variable * Apply 12xx12 suggestion * Fixing area constant size * Refactor bounding box calculation, use vectors. * Add Api documentation * Update lua docs * Rework farmer ai * Fixing lua docs notes * Add missing capitalisation * Add villagers inventory save * Fixing loading entities from disk inconsistencies * Add farmer harvest animation * Fix beetroots grow state Co-authored-by: Alexander Harkness <me@bearbin.net>
2021-04-12Unify multiprotocol entity animationsTiger Wang1-1/+1
2021-04-12Update entity sizesTiger Wang1-1/+1
2021-03-15Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang1-4/+4
* Fixes #5144
2020-04-16Using Super.Mattes D1-4/+4
2020-04-10Add Zombie VillagersBond-0091-1/+31
2020-03-22Add ambient mob sounds (#4521)Mat1-1/+1
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-5/+1
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-0/+1
Add check for number of empty lines between functions and fix the corresponding failures
2017-06-13FastRandom rewrite (#3754)peterbell101-3/+3
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-1/+1
2017-02-14Added some blocks and items (#3503)mathiascode1-0/+1
2017-02-05Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D1-1/+1
The original bindings accepted nil as the World param, causing a crash.
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot1-0/+5
2015-12-13Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby1-1/+1
2015-07-31Unified the doxy-comment format.Mattes D1-8/+10
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-8/+8
2015-07-16Spawn baby mobshallucino1-1/+1
2015-05-04Entity improvementsTiger Wang1-1/+1
•Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-1/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-11-22formatter errorp-mcgowan1-3/+3
2014-11-22villagers turn into witches on lightningp-mcgowan1-2/+4
2014-11-22villagers turn into witches when struck by lightningp-mcgowan1-0/+5
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-09-25Fixed wrong Surrounding sizeHowaner1-3/+3
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-07-17Normalized comments.madmaxoft1-2/+2
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-04-26Add entity invulnerableHowaner1-2/+7
2014-04-12Entities handle chunks properly againTiger Wang1-1/+1
* Entities properly handle chunks * Changed EntityStatus enums to be less shouty
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew1-1/+1
2014-02-05Fixed most of the reordering warningsTycho1-2/+2
2014-02-02Changed Signiture of OnUpdateTycho1-1/+4
2014-01-28Renamed Farmer functions and added doxycommentsSTRWarrior1-11/+7
2014-01-28Villager: NoCountDown and Action function don't check VillagersShouldHarvestCrops anymore because it shoudn't even be activated anywhere.STRWarrior1-10/+0
2014-01-27Villager doesn't check the environment for crops if it doesn't need to.STRWarrior1-0/+5
2014-01-27The world can now be configured wether farmers should be able to harvest crops.STRWarrior1-0/+10
2014-01-27Villager: Few more comments.STRWarrior1-3/+8
2014-01-27CleanupSTRWarrior1-28/+58
Most code in Tick is now split up in different functions.
2014-01-27Villagers: Harvesting is more rare.STRWarrior1-1/+1
2014-01-27Villager: Farmers can't place crops on blocks other then farmland.STRWarrior1-1/+7
2014-01-27Fixed compiler error.STRWarrior1-1/+1
2014-01-27Villager: Farmer: Crops finding is more random.STRWarrior1-18/+19
2014-01-27Villagers: Farmers now replant the crops.STRWarrior1-1/+16
2014-01-27Villagers: Fixed only gettings the crops block when farming.STRWarrior1-2/+2
2014-01-27Villagers don't look for new crops when they already found one.STRWarrior1-11/+9
Slight cleanup.
2014-01-27Villagers: Farmers can also harvest carrots and potatoes.STRWarrior1-9/+37
2014-01-27Makes farmers farm crops.STRWarrior1-1/+71
2014-01-26Fixed segmentation fault on villager damageTiger Wang1-1/+1
It occurred when attack was environmental.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-10-20Fixed loading allowed mobs in world.madmaxoft1-1/+1
2013-10-11Fifth round of fixesTiger Wang1-2/+2
* Enumerated Villager spawning
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang1-2/+20
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-17/+17
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-1/+1
Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-22Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com1-3/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-9/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-20/+2
http://forum.mc-server.org/showthread.php?tid=625 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1087 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-19Added spawn eggs with mobs (patch committed by Luksor)madmaxoft@gmail.com1-0/+45
git-svn-id: http://mc-server.googlecode.com/svn/trunk@979 0a769ca7-a7f5-676a-18bf-c427514a06d6