summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement farmland trampling (#5401)DarkoGNU2022-04-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add DarkoGNU to CONTRIBUTORS * HandleFarmlandTrampling function & its docs * Fix decimal separators (, -> .) * Fix style. Adjust thresholds. Make function non-virtual * Adjust thresholds again. Prepare for fixing #5402 * Trying to fix falling through farmlands * Another style fix * Add FarmlandTramplingEnabled to world.ini * Docs for IsFarmlandTramplingEnabled * Style * Farmland trampling - handling the random chance * Trampling kinda works, very buggy * Trying to fix clang-tidy * Fix trampling * Trying to fix the 'undocumented API symbol' * Implement bearbin's suggestions * Calculate volume properly * Don't use std::pow for squaring * Improved comments * Really, should comments' style be checked?
* Chorus fruit teleport (#5259)KingCol132021-07-101-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Outline function for teleporting. * Created new handler for chorus fruit. * Fixed AttemptTeleport failing. * Better names, working sound effect. * Corrected naming. * Remove stray LOGD. * Offset teleport to middle of block. * Style Fixes Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Style Fixes 2 Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Move FindTeleportDestination to static cPawn method. * cBoundingBox interface. * Cleanup includes. * Maybe exported to API? * Change a_World to reference, add to APIDesc. Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* Update entity sizesTiger Wang2021-04-121-1/+1
|
* Implementation of totem of undying behaviour (#5111)Damián Imrich2021-01-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * notchian totem of undying * ... * .... * Update src/Entities/Pawn.cpp Co-authored-by: Alexander Harkness <me@bearbin.net> * DeductTotem func * fixed build errors * Added myself to CONTRIBUTORS * Small changes Co-authored-by: Peter <peter@cassoviacode.com> Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-6/+1
| | | | | | | | | | * Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
* Add some const qualifiers to functions (#4874)12xx122020-09-171-2/+2
| | | | | | | * add some const qualifiers to functions * added changes suggested by @tigerw Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Using Super.Mattes D2020-04-161-2/+3
|
* cPawn: Reset last ground height in ResetPosition (#4261)peterbell102018-07-231-0/+2
| | | | | Prevents fall damage after teleporting/portaling to a lower height. Fixes #3457
* Implement invisibility effectpeterbell102017-08-031-3/+4
|
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Anticheat fastbreak (#3411)mohe20152016-11-061-0/+6
| | | Added block hardness checks when breaking blocks.
* Updated API documentation.Mattes D2016-07-181-12/+6
|
* Fixed fall damageTiger Wang2016-06-021-4/+0
| | | | * Fixes #3216
* Fixed death on teleportation or leaving Minecart (#3181)LogicParrot2016-05-031-0/+4
|
* cMonster::m_Target safety across worldsLogicParrot2016-02-031-7/+28
|
* blockheight mechanismGargaj2015-12-131-2/+6
|
* Implemented the Water Breathing Potion functionality.bibo382015-11-011-0/+1
| | | | Fixes #2556
* Implemented the FireResistence potion effects.bibo382015-10-311-0/+7
| | | | | This not only provides fire resistence, but also prevents blaze fireballs. See #2556
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Removed redundant semicolons and re-added warningarchshift2014-07-241-1/+1
|
* Updated cPawn::KilledBy signature for custom death messages.madmaxoft2014-07-171-1/+1
|
* For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-2/+1
|
* EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2014-06-191-8/+2
| | | | Changed effect map to take a pointer of the effect as a result.
* Entity effects: changed User to Creator, removed pawn pass-by-valuearchshift2014-06-171-9/+2
|
* Added the OnEntityAddEffect hook.madmaxoft2014-06-171-0/+2
|
* Entity Effects: Clarified user, added it to AddEntityEffectarchshift2014-06-171-1/+10
| | | | Added second AddEntityEffect with a pass-by-value of the class.
* Changed the AddEntityEffect() params for easier calls.madmaxoft2014-06-171-7/+9
|
* Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift2014-06-171-1/+3
| | | | Exported entity effect functions for ToLua and documented them in APIDesc.lua
* Implemented drinkable potions, noeffect entity effect,archshift2014-06-171-0/+1
| | | | Clears entity effects on death
* Implemented milk, added documentation to Pawn.harchshift2014-06-171-0/+15
|
* Pawn: Enabled entity effect broadcast, added typedefarchshift2014-06-171-1/+2
| | | | Typedef'd std::map<cEntityEffect::eType, cEntityEffect> to tEffectMap
* Entity effects: Added handlers for entity effectsarchshift2014-06-171-0/+2
| | | | | | Implemented hunger, instant health, damage, poison, regen Added "template" entity effect implementations
* cPawn: Remove unused m_bBurnablearchshift2014-06-171-1/+0
|
* Moved Effects.h to EntityEffects.h, added initial implarchshift2014-06-171-0/+7
|
* Moved source to srcAlexander Harkness2013-11-241-0/+28