Mattes D
c30b7b8735
Merge pull request #1045 from Howaner/GlobalFixes
...
Little fixes
2014-06-18 18:23:18 +02:00
STRWarrior
e0a9f37d90
(Force)ExecuteCommand returns the CommandResult enums
...
Exported and documented the CommandResult enums
2014-06-18 12:13:01 +02:00
archshift
21b9253ee6
Merge pull request #1100 from Howaner/Slabs
2014-06-18 00:47:08 -07:00
archshift
68c30790db
Entity effects: changed User to Creator, removed pawn pass-by-value
2014-06-17 11:39:22 -07:00
madmaxoft
a37d5410b4
APIDump: Added OnEntityAddEffect hook documentation.
2014-06-17 11:39:22 -07:00
madmaxoft
fa1d85feca
Added the OnEntityAddEffect hook.
2014-06-17 11:39:22 -07:00
archshift
9e8361976b
Entity Effects: Clarified user, added it to AddEntityEffect
...
Added second AddEntityEffect with a pass-by-value of the class.
2014-06-17 11:39:22 -07:00
madmaxoft
e289fe4dd7
Changed the AddEntityEffect() params for easier calls.
2014-06-17 11:39:21 -07:00
archshift
22761bb6ad
Entity Effect: Separates total duration and ticks of activity
...
Changed HandleEntityEffect to use cEntityEffect's ticks instead of a static counter
2014-06-17 11:39:21 -07:00
madmaxoft
045ae2ef2c
Fixed MSVC compilation.
2014-06-17 11:39:21 -07:00
archshift
5b2b6e0615
Pawn: renamed HandleEntityEffects to HandleEntityEffect
...
Exported entity effect functions for ToLua and documented them in APIDesc.lua
2014-06-17 11:39:21 -07:00
archshift
71b4c49490
Cave spider now poisons its victim, added IsPawn function to Entity
2014-06-17 11:39:21 -07:00
archshift
814cdca054
Added wither damage type, wither entity effect.
2014-06-17 11:39:21 -07:00
archshift
2574573c88
Monster: added IsUndead(), undead-specific entity effects
2014-06-17 11:39:20 -07:00
archshift
52abd90a28
Applies splash potion effects to mobs as well as players
2014-06-17 11:39:20 -07:00
archshift
68011a004a
Removed long function wrapping
2014-06-17 11:39:20 -07:00
archshift
3766ac96d7
ItemHandler: changed IsDrinkable() to take a short argument
2014-06-17 11:39:20 -07:00
archshift
a1a8b7c0ee
Splash potion: Adjusted speed, fixed spawn position
2014-06-17 11:39:20 -07:00
archshift
73cea7065d
Entity effect type: use 'eff' as a prefix instead of 'ef'
2014-06-17 11:39:20 -07:00
archshift
58f35af6e7
Added splash potion functionality
2014-06-17 11:39:20 -07:00
archshift
5803094d7d
Entity: only fire critical hit if damage type is physical
2014-06-17 11:39:20 -07:00
archshift
8eceaf9b0c
Player: made healing instantaneous
2014-06-17 11:39:20 -07:00
archshift
2185c72c2c
Implemented drinkable potions, noeffect entity effect,
...
Clears entity effects on death
2014-06-17 11:39:20 -07:00
archshift
1eb04a48ee
Implemented milk, added documentation to Pawn.h
2014-06-17 11:39:19 -07:00
archshift
615152eb8c
Pawn.cpp: fixed effect iterator BAD_ACCESS
...
Erasure was occurring before the iterator increased, causing a bad access. Solved by storing map pairs in variables and manually updating iterator before erasure.
Fixed mix-up in function arguments on food poisoning
2014-06-17 11:39:19 -07:00
archshift
e98ffccd80
Pawn: Enabled entity effect broadcast, added typedef
...
Typedef'd std::map<cEntityEffect::eType, cEntityEffect> to tEffectMap
2014-06-17 11:39:19 -07:00
archshift
a9a4c9c6b2
EntityEffect: read-only getters, added user and distance modifier fields
...
User: the pawn that uses or produces the entity effect (drinks/throws a potion)
Distance modifier: the potency modifier from splash potion effectivity radius
2014-06-17 11:39:19 -07:00
archshift
2123173202
Player: Removed food-poisoning-specific code, set duration to 30 seconds
...
http://minecraft.gamepedia.com/Hunger#Behavior
2014-06-17 11:39:19 -07:00
archshift
481f05b011
Entity effects: Added handlers for entity effects
...
Implemented hunger, instant health, damage, poison, regen
Added "template" entity effect implementations
2014-06-17 11:39:19 -07:00
archshift
90145a9514
Added iterator on tick to manage entity effect duration
2014-06-17 11:17:33 -07:00
archshift
aa7b3f33b9
cPawn: Remove unused m_bBurnable
2014-06-17 11:17:33 -07:00
archshift
87b1bfaf2a
Moved Effects.h to EntityEffects.h, added initial impl
2014-06-17 11:17:32 -07:00
archshift
c1692a2e3b
Added classes for splash potions and wither skulls
2014-06-17 11:17:32 -07:00
Howaner
2da7768298
Merge branch 'master' into Blocks
2014-06-17 19:50:26 +02:00
Howaner
bcf798f260
Fix fence gate sound (Redstone simulator).
2014-06-17 19:47:32 +02:00
worktycho
2f2071afc1
Merge pull request #1101 from Howaner/FenceGate
...
Fix fence gate redstone simulator.
2014-06-17 18:39:21 +01:00
Howaner
bde51d8778
Add fence gate sound.
2014-06-17 19:08:36 +02:00
Howaner
c60ba8a52d
Merge branch 'master' into GlobalFixes
2014-06-17 19:03:56 +02:00
Howaner
8de8768f02
Add UNUSED() Tags
2014-06-17 17:01:23 +02:00
Howaner
0d08b9a62e
Add door sound
2014-06-17 17:00:51 +02:00
STRWarrior
008a6ce311
Added crBlocked and crNoPermission
2014-06-17 16:19:31 +02:00
STRWarrior
15ae4ce233
HandleCommand now returns an CommandResult enum.
2014-06-17 14:55:15 +02:00
Howaner
8e927e6e2b
Check block type from cBlockEntity
2014-06-17 14:45:29 +02:00
Mattes D
f682646d3a
Merge pull request #1099 from Howaner/Blocks
...
Glass-made blocks don't drop pickups.
2014-06-17 14:03:24 +02:00
Mattes D
532d388d07
Merge pull request #1102 from Howaner/PressurePlate
...
Add pressure plate handler
2014-06-17 13:52:00 +02:00
Howaner
7e985f3c7d
Add more documentation.
2014-06-17 13:44:07 +02:00
Howaner
ce06ec1632
derp
2014-06-17 13:33:41 +02:00
STRWarrior
8928310fd8
Fixed possible confusion.
...
If a command handler gets an error then the player will receive an unknown command error. This can be confusing for players.
2014-06-17 13:27:04 +02:00
Howaner
da88c98034
Add comment.
2014-06-17 13:25:36 +02:00
Howaner
a4d4621fbe
Add parenthesis
2014-06-17 12:47:18 +02:00