summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PassiveMonster.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Monsters: improve targetingTiger Wang2020-12-211-1/+1
| | | | | | * Replace DoWithNearestPlayer with bounding box search (avoid iterating through all players in world). * Do line-of-sight checks from eye-to-eye. + Added LOS and LOS lost timer to target lost checks, in addition to distance.
* Adding wolf breading and moving breeding functionality to cMonster (#4951)12xx122020-10-091-185/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added wolf breading * mpoved breeding to monster * checkstyle * fixed my IDE "helping" * removed magic number and fixed faster aging * added flooring to age manipulation * fixed copiler error * fixed typo * moved tps to Defines.h * removed the TPS constant from the lua API exposure * added inline constexpr added explanation * fixed broken build * "fixed" build Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Add more statistic tracking (#4837)12xx122020-09-051-0/+12
| | | | | | | | + Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Using Super.Mattes D2020-04-161-5/+5
|
* Add ambient mob sounds (#4521)Mat2020-03-221-2/+2
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Experience orb (#4259)changyong guo2018-08-021-5/+6
| | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-33/+16
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-16/+33
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-33/+16
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-1/+1
|
* Added basic ocelot behavior (#3829)Bond-0092017-07-121-1/+1
|
* When right-clicking on a passive mob with 'his' spawn egg spawn a babyBond_0092017-07-021-2/+20
|
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+1
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Fix passive mob destruction crashesLogicParrot2016-03-281-0/+1
|
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-4/+12
|
* Prevent interspecies breedingLogicParrot2016-02-041-11/+25
|
* sheep color inheritanceGargaj2015-12-131-1/+20
|
* Added documentation for breeding codeSafwat Halaby2015-11-301-4/+9
|
* implement breedingGargaj2015-11-291-11/+138
|
* change from single followable item to multipleGargaj2015-11-231-3/+5
|
* Made -Weverything an error.tycho2015-05-241-1/+1
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Added first test to show the object can be createdTycho2014-09-171-1/+1
|
* Add entity invulnerableHowaner2014-04-261-2/+6
|
* Did what xoft saidtonibm192014-01-291-1/+1
|
* Rewritten code.tonibm192014-01-291-1/+15
| | | | | Implemented xoft suggestion. Using MoveToPosition as tigerw suggested.
* Large reworking of mob code [SEE DESC]Tiger Wang2014-01-241-14/+2
| | | | | | | + Implemented better pathfinding - Removed lots of unused variables, functions, etc. * Changed some variable types * Other miscellaneous fixes, and also completes the previous PRs
* Moved source to srcAlexander Harkness2013-11-241-0/+59