summaryrefslogtreecommitdiffstats
path: root/src/Mobs (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-19Fixed style: spaces after commas.madmaxoft2-2/+2
2014-07-19Fixed clamping issuesarchshift1-5/+1
2014-07-19Subdirs: Only add_library if not using MSVCarchshift1-1/+3
2014-07-19Mobs/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+69
2014-07-18Fixed slime-related comments.madmaxoft3-5/+10
2014-07-18Slime sizes are 1, 2 or 4 and not 1, 2 or 3.Howaner3-4/+4
2014-07-18Monster fixesTiger Wang6-31/+5
* Fixes #1203 * Fixes #627
2014-07-18Fixed spaces before commas.madmaxoft1-3/+3
2014-07-18Skeletons should spawn with a bow in the hand.Howaner2-0/+17
Fixes #1184
2014-07-17Split into more lines.Howaner2-6/+10
2014-07-17Fixed tabs used for alignment.madmaxoft1-1/+1
2014-07-17More trailing whitespace fixes.madmaxoft2-2/+2
2014-07-17Basic style fixes.madmaxoft4-9/+9
2014-07-17Fixed many slime bugs.Howaner2-3/+73
- Fixed slime hurt/death sound - Added slime spawning on death. - Fixed the max health. - Fixed the attack damage. - Little slimes should not attack players.
2014-07-17Normalized comments.madmaxoft7-31/+30
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-07-16Resolved backwards compatibility issuesTiger Wang1-1/+1
2014-07-13Update.Howaner1-1/+1
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner2-4/+4
2014-07-13Changed comments.Howaner1-3/+5
2014-07-12For now, removed creator member from Entity Effect for pointer safetyarchshift1-1/+1
2014-07-06Fixed slime handling in cMonster::StringToMobType().madmaxoft1-1/+1
2014-07-05Changed everything to callbacksTiger Wang1-2/+20
2014-07-04Tailored death messagesTiger Wang6-11/+11
2014-07-01Add doxy-comments.Howaner1-1/+4
2014-06-30Moved the random code to a function (cSheep::GenerateNaturalRandomColor())Howaner2-36/+47
2014-06-28Save IsSheared from Sheep.Howaner1-0/+3
2014-06-28Fix sheep color's, add shear sound.Howaner3-3/+42
2014-06-22Bettered zombie and skeleton AITiger Wang2-6/+4
* Fixed potential issues with skylight detection
2014-06-20Added pig riding.tonibm192-0/+14
Now you can ride a pig using a carrot on a stick.
2014-06-19Nullify deleted pointers.archshift3-0/+3
2014-06-19EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2-47/+0
Changed effect map to take a pointer of the effect as a result.
2014-06-17Entity effects: changed User to Creator, removed pawn pass-by-valuearchshift1-1/+1
2014-06-17Entity Effects: Clarified user, added it to AddEntityEffectarchshift1-1/+1
Added second AddEntityEffect with a pass-by-value of the class.
2014-06-17Changed the AddEntityEffect() params for easier calls.madmaxoft1-1/+1
2014-06-17Fixed MSVC compilation.madmaxoft1-3/+3
2014-06-17Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift2-3/+3
Exported entity effect functions for ToLua and documented them in APIDesc.lua
2014-06-17Cave spider now poisons its victim, added IsPawn function to Entityarchshift3-4/+22
2014-06-17Monster: added IsUndead(), undead-specific entity effectsarchshift2-0/+71
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D5-5/+5
Fixes #1039, fixes #851
2014-06-07Fixed mob hitbox sizes, removed TODOsarchshift3-5/+2
Measured bat and blaze in vanilla, updated values. Cavespiders are, in fact, passive in the day.
2014-06-04Exploded creepers drop nothing, part of #1058Tiger Wang1-2/+8
2014-06-02Small tweak for mobsSTRWarrior1-4/+14
Mobs move a bit smoother and aren't able to move allot when in air.
2014-05-21Fixed cWither::KilledByandrew1-1/+2
2014-05-20Cleaned up cPlayer::UpdateMovementStats; Wither achievementsandrew2-0/+34
2014-05-13Fixesandrew1-1/+1
2014-05-12Movement Statisticsandrew1-1/+3
2014-05-12Fixed a few more switch warnings.archshift1-0/+2
2014-05-02Fixed MagmaCube spawning.madmaxoft1-0/+4
Fixes #928.
2014-04-28Revert "Withers now use the new invulnerable."Howaner2-10/+26
This reverts commit 619592b5a0ab651e714d55932bc7909e4204cee9.
2014-04-28Revert "Changed the old invulnerable methods from the wither to the new."Howaner1-3/+0
This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
2014-04-28Fixed projectile source filenames, indentationsarchshift3-3/+3
2014-04-27Fixed warnings.madmaxoft1-2/+2
2014-04-27Redstone simulator now directly accesses cChunkTiger Wang1-3/+2
* Redstone simulator performance improvements * Added return values to some functions * Minor fixes
2014-04-27Moved cGhastFireballEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cFireChargeEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cArrowEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Added static const, initialized fields.archshift1-1/+1
2014-04-26Further refactored, Reverted Minecart changearchshift2-3/+3
Other small changes.
2014-04-26Changed the old invulnerable methods from the wither to the new.Howaner1-0/+3
2014-04-26Withers now use the new invulnerable.Howaner2-26/+10
2014-04-26FixesHowaner2-8/+8
2014-04-26Fixed mobs that don't naturally spawn.archshift2-2/+6
2014-04-26Moved huge conditional out of InStateChasing(), improving readabilityarchshift2-1/+20
Squashed a warning.
2014-04-26Add entity invulnerableHowaner14-24/+50
2014-04-25Cmake generated projects for IDEs include headers in project files.archshift1-0/+1
2014-04-25Giants!archshift2-7/+12
Changed mfMaxplusone to mfUnhandled for readability, and fixed a default case warning.
2014-04-24Fixed class capitalization for the cave spider.archshift3-6/+6
2014-04-24Fixed references to renamed files.archshift4-7/+7
2014-04-24Rename mob source files to fit CamelCase.archshift6-6/+0
Rename Cavespider.cpp to CaveSpider.cpp Rename Cavespider.h to CaveSpider.h Rename Magmacube.cpp to MagmaCube.cpp Rename Magmacube.h to MagmaCube.h Rename Zombiepigman.cpp to ZombiePigman.cpp Rename Zombiepigman.h to ZombiePigman.h
2014-04-18Compilation fixTiger Wang1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2-4/+5
2014-04-18Fixed #906Tiger Wang1-1/+2
2014-04-18Fixed #904Tiger Wang1-1/+1
2014-04-17Added new AI rulesTiger Wang2-14/+28
+ Added new AI rules handling cacti and large heights * Fixed cIniFile not recognising comments in cIniFile::ReadFile() * Fixed users.ini not being properly generated * Changed all instances of (int)floor(GetPosXXX()) to POSXXX_TOINT
2014-04-12Entities handle chunks properly againTiger Wang3-4/+4
* Entities properly handle chunks * Changed EntityStatus enums to be less shouty
2014-04-10Fixed GitHuB WebEdit fail.Alexander Harkness1-0/+1
2014-04-10Update Monster.cppAlexander Harkness1-2/+4
2014-03-31Final realisation of suggestionsTiger Wang1-5/+7
2014-03-31Fixed a few Y too high/low assertsTiger Wang1-5/+5
2014-03-25More fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future.Samuel Barney3-6/+2
Also had to undefine TOLUA_TEMPLATE_BIND a couple of times.
2014-03-25Fixed clang compilationandrew1-1/+1
2014-03-25Fixed wither summoningandrew2-2/+13
2014-03-25Protocol: Wither metadataandrew2-0/+19
2014-03-25Minor fixesandrew2-4/+3
2014-03-24Wither invulnerabilityandrew3-1/+66
2014-03-16Fixed double to float conversions.madmaxoft1-5/+5
2014-03-11Unified Vector classesandrew2-2/+2
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew1-1/+1
2014-03-02Creeper fixestonibm192-10/+34
- Fixed explosion time (1.5s, according to minecraftwiki) - Creeper explodes if right clicked with flint and steel
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew2-6/+6
2014-02-27added mooshroom to cow conversiontonibm191-0/+2
2014-02-27Fixed sheep ASSERTing sometimesTiger Wang1-8/+18
2014-02-24Fixed Formatting, added compiler warning suppressing methods, fixed commentsTheJumper5-3/+6
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper24-38/+316
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper20-48/+219
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2-10/+14
2014-02-23Fixed Formatting, Added DropChance attributes to MonstersTheJumper7-35/+74
2014-02-23Finally corrected the Enchantment constants.TheJumper17-17/+17
2014-02-22Changed formatting againTheJumper1-1/+1
2014-02-22Changed formatting, encapsuled armor drop, introduced better static Enchantment IDsTheJumper8-24/+48
2014-02-22Fixed Looting segment fault - a_Killer can be NULLTheJumper17-19/+83
2014-02-22Mooshroom.cpp: Added right click interactionTheJumper2-1/+38
2014-02-22Monster.h: Added doxy-comments for drop methodsTheJumper1-0/+3
2014-02-22Monster.cpp: Fixed Formatting in AddRandomUncommonDropItemTheJumper1-1/+1
2014-02-22Changed killer detection by using cEntity methodsTheJumper3-3/+3
2014-02-22Added static Enchantment Constants, Replaced cryptic Looting IDTheJumper17-17/+17
2014-02-21Fixed Mob Drops, Add Rare and Uncommon Drops, Looting inflicts DropsTheJumper23-37/+144
2014-02-20Add Wolf Heal with FoodHowaner1-10/+34
2014-02-17Improved formattingtonibm191-2/+2
2014-02-16Now mobs can't escape from fences.tonibm191-2/+2
2014-02-16Fixes to previous commitTiger Wang1-9/+10
2014-02-16Slight cleanup of wolf codeTiger Wang1-23/+7
2014-02-15Fixed TNT fizzing everywhereTiger Wang1-1/+1
2014-02-12Simplified Attack() tracingTiger Wang1-1/+6
2014-02-11Fixed #627Tiger Wang4-19/+10
- Attack() is now called from cAggressive instead of cMonster * Monsters can no longer attack through walls * Should fix last remnants of player damage after teleporting (that both STR and bearbin contributed fixes to :P)
2014-02-05Fixed most of the reordering warningsTycho2-6/+6
2014-02-05Fixed a bunch of MSVS warningsTiger Wang1-1/+1
* Possibly also fixed some bugs with pathfinding and TNT, though unlikely
2014-02-04Blank lines and indentation.tonibm191-0/+4
Also removed GetClosestPlayer documentation
2014-02-03Increased Type safety of BiomesTycho1-1/+1
Changed a number of funcictions from using integers to store biomes to using EMCSBiome Note that switching from an int to an Enum is a non-breaking chang to the lua bindings
2014-02-03Exporded World:FindClosestPlayer, Item:IsEnchantable and Monster:MoveToPosition to Lua APItonibm192-0/+9
2014-02-02Changed Signiture of OnUpdateTycho1-1/+4
2014-02-01Monster's nominal speed was increased.Kirill Kirilenko1-1/+1
2014-02-01Fixed teleport to air, if owner is flying.Kirill Kirilenko1-0/+1
2014-01-29Did what xoft saidtonibm194-5/+3
2014-01-29Rewritten code.tonibm1912-152/+25
Implemented xoft suggestion. Using MoveToPosition as tigerw suggested.
2014-01-29Fixed sheeptonibm191-18/+17
2014-01-29Fixed a copypasta error...tonibm194-1/+5
2014-01-29Now mobs follow you when holding their breed itemtonibm1910-5/+153
2014-01-28Renamed Farmer functions and added doxycommentsSTRWarrior2-17/+20
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.STRWarrior2-4/+9
2014-01-27CleanupSTRWarrior2-31/+65
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-27Added GetCropsPos and DidFindCrops functions.STRWarrior1-0/+6
2014-01-27Villagers: Farmers now replant the crops.STRWarrior2-1/+17
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.STRWarrior2-9/+38
2014-01-27Makes farmers farm crops.STRWarrior2-1/+76
2014-01-26Fixed bug where wolfs would teleport while they were sitting.STRWarrior1-1/+4
2014-01-26Small fix since the new AI and a new small feature.STRWarrior1-6/+27
You get particles when trying to tame wolfs. They don't walk anymore when they are sitting.
2014-01-26Fixed segmentation fault on villager damageTiger Wang1-1/+1
It occurred when attack was environmental.
2014-01-25Did what xoft recommendedTiger Wang1-1/+5
2014-01-25Implemented sheeps eating grass.STRWarrior2-1/+41
2014-01-25Implemented fall damage for mobsTiger Wang2-6/+33
+ Implemented mobile fall damage * Formatting fixes + Defined new Position->Integer macros
2014-01-25Attack() is no longer always calledTiger Wang1-1/+1
2014-01-25Mob bugfixesTiger Wang2-22/+39
* Mobs no longer require constant line-of-sight to a player to remain aggravated * Fixed an ASSERT * Fixed mobs jumping * Fixed Idle state not properly using AI + Added FILE_IO_PREFIX to favicon loading + Implemented #563
2014-01-25All mobs now drown (fixes #54)Tiger Wang2-0/+7
* Implemented mob drowning * Iron Golems and squids are excluded
2014-01-25Fixed a generator bugTiger Wang1-0/+3
2014-01-25Zombies and skeletons use AITiger Wang2-9/+15
2014-01-24Miscellaneous improvementsTiger Wang2-18/+13
2014-01-24Changed a condition to IsGameModeTiger Wang1-2/+1
2014-01-24Fixed a failure in cSquid.madmaxoft1-1/+2
Probably due to rounding errors the squid was querying out-of-chunk coords.
2014-01-24Made wolves compatible with new AI codeTiger Wang2-11/+26
2014-01-24Monsters no longer check for direct line of sightTiger Wang1-10/+2
2014-01-24Large reworking of mob code [SEE DESC]Tiger Wang6-232/+324
+ Implemented better pathfinding - Removed lots of unused variables, functions, etc. * Changed some variable types * Other miscellaneous fixes, and also completes the previous PRs
2014-01-24Implemented creeper abilitiesTiger Wang2-2/+50
* Creepers now explode with a sound effect * Creepers drop a music disc on the unlikely event of being killed by a skeleton's arrow Inspired by @maniak89's PR #132.
2014-01-16Removed obsoleted functionsTiger Wang1-1/+1
2013-12-25Preliminary mobile entity savingTiger Wang1-1/+2
* Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
2013-12-23Some fixes (SEE DESC)tonibm191-0/+6
-Added missing mobs (wither, enderdragon and iron golem) to type to string list. -Wither and iron golem can now spawn
2013-12-22Fixed bug where snowgolems could replace non-solid blocks to snow blocks.STRWarrior1-1/+3
2013-12-22Snow golems die in hot biomes and leave a snow trail.STRWarrior2-0/+18
2013-12-22EnderDragons and SnowGolems are able to spawn.STRWarrior1-0/+2
2013-12-20Fixed the rest of constructor reorders.madmaxoft1-2/+2
2013-12-20Sorted a few constructors to remove warnings.madmaxoft5-17/+21
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-1/+1
2013-12-14Fixed not getting XP from mobs.STRWarrior1-0/+6
2013-12-11moved mobs to globsTycho Bickerstaff1-1/+5
2013-12-10more cmakeTycho Bickerstaff1-0/+7
2013-11-24Moved source to srcAlexander Harkness65-0/+3488