summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemPotion.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-8/+5
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Vector3 in Handlers (#4680)Mattes D2020-04-211-3/+16
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness2020-04-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Replace buckets to the selected hotbar slot, rather than the first available. Replicates vanilla behaviour, as well as being more logical. * Refactor cInventory::AddItem. Behaviour is now documented * Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods * Return empty potion to the same slot after drinking * Replace buckets correctly in other situations, not simply water and lava Uses the new ReplaceOneEquippedItem method * Correct collecting water from source block with bottle * Add cPlayer::ReplaceOneEquippedItemTossRest method * Handle stacked filled buckets (in theory) Use new cPlayer::ReplaceOneEquippedItemTossRest method
* Increase speed of splash potion and expbottle (#4513)Mat2020-03-221-1/+4
|
* Don't remove items twice (#4524)Mat2020-03-221-1/+1
| | | * Don't remove items twice
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-12/+12
|
* Placing a fluid from bucket calls plugin hooks.Mattes D2015-04-141-1/+4
| | | | Ref.: #1857.
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-1/+1
|
* Fixed potion removing in creative mode.Howaner2014-08-301-2/+6
|
* Fixed indentations, removed redundant init code in SplashPotionEntity.cpparchshift2014-07-261-3/+5
|
* Moved potion static functions to EntityEffect to create splash potions through worldarchshift2014-07-261-129/+7
|
* Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift2014-07-191-3/+3
|
* Reformatted cItemPotionHandler.madmaxoft2014-07-171-47/+77
|
* Readability and clarity changesarchshift2014-07-141-30/+45
|
* For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-2/+2
|
* EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift2014-06-191-1/+1
| | | | Changed effect map to take a pointer of the effect as a result.
* Entity Effects: Clarified user, added it to AddEntityEffectarchshift2014-06-171-1/+1
| | | | Added second AddEntityEffect with a pass-by-value of the class.
* Changed the AddEntityEffect() params for easier calls.madmaxoft2014-06-171-2/+1
|
* Fixed MSVC compilation.madmaxoft2014-06-171-7/+7
|
* Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift2014-06-171-1/+1
| | | | Exported entity effect functions for ToLua and documented them in APIDesc.lua
* Removed long function wrappingarchshift2014-06-171-10/+2
|
* ItemHandler: changed IsDrinkable() to take a short argumentarchshift2014-06-171-9/+4
|
* Splash potion: Adjusted speed, fixed spawn positionarchshift2014-06-171-6/+3
|
* Entity effect type: use 'eff' as a prefix instead of 'ef'archshift2014-06-171-33/+33
|
* Added splash potion functionalityarchshift2014-06-171-1/+35
|
* Implemented drinkable potions, noeffect entity effect,archshift2014-06-171-0/+137
Clears entity effects on death