diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-18 20:03:06 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-18 20:03:06 +1000 |
commit | b51e174bdc158187fc110dc4a947946d3dc329c1 (patch) | |
tree | c1a61ba9edaa5ff0628f4275d16392ca12ddd4dd /source/game/StarItemDrop.hpp | |
parent | ab03c224dd154a4cce9cf60e20bb166e57f33d01 (diff) |
Item drops inherit player velocity, other stuff
Diffstat (limited to 'source/game/StarItemDrop.hpp')
-rw-r--r-- | source/game/StarItemDrop.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarItemDrop.hpp b/source/game/StarItemDrop.hpp index d88da73..e72878c 100644 --- a/source/game/StarItemDrop.hpp +++ b/source/game/StarItemDrop.hpp @@ -23,8 +23,8 @@ public: // Create a drop and throw in the given direction with a hard-coded initial // throw velocity (unrelated to magnitude of direction, direction is // normalized first). Initially intangible for 1 second. - static ItemDropPtr throwDrop(ItemPtr const& item, Vec2F const& position, Vec2F const& direction, bool eternal = false); - static ItemDropPtr throwDrop(ItemDescriptor const& itemDescriptor, Vec2F const& position, Vec2F const& direction, bool eternal = false); + static ItemDropPtr throwDrop(ItemPtr const& item, Vec2F const& position, Vec2F const& velocity, Vec2F const& direction, bool eternal = false); + static ItemDropPtr throwDrop(ItemDescriptor const& itemDescriptor, Vec2F const& position, Vec2F const& velocity, Vec2F const& direction, bool eternal = false); ItemDrop(ItemPtr item); ItemDrop(Json const& diskStore); |