Loading...
Guest user
 
« #415
 
All history
 
#417 »

Build revisions

VCS Root Revision
(jetbrains.git) https://github.com/AscensionGameDev/Intersect-Engine.git#refs/heads/prerelease 4cab01d144131fe15d3736194806066428258ac2

Permalink

Assigning loot ownership + small fixes (#181)

* Added loot ownership

* Map items can be spawned with an owner, and only be picked up by the owner and their party. Anyone can still see it, however.
* The time that loot is exclusive to the owner and their party is configurable through the server's config.json under Map Options.
* NPC Drops are owned by the player (and their party) that dealt the most damage to them. (Unless killed by an NPC or something else, then there is no owner)
* Player drops on death are owned by whoever dealt the killing blow and their party.
* Items dropped from your inventory to the map are owned by you and your party until the timer expires.

* Made the packet handler for PickupItempacket slightly less a hassle to read by shortening some checks.

* Removed useless reference and fixed an issue

Removed a useless reference to System from a random test I forgot to remove.

Fixed an oversight in the way the owner was determined by the amount of damage done to an NPC.. It should now no longer always use the last player in the list, but the one with the most damage.

* General code cleanup

Cleaned up my loot tagging attempt in Entity.Die, as well as some general cleaning up of repeated code using Npc.DamageBase.

* Fixed an NPC behaviour check I skipped over last cleanup

* Add an option to hide loot for players until the ownership claim drops.

Added a configurable option to the server configuration (ShowUnownedItems) that can either show or hide loot for players that are not the owner and not in the owner's party until the claim on that item is dropped by the server.

Disabled attempts at picking up invisible items as well.

* Fix a potential error here, in case the item gets deleted before it should become visible.

* Small death rule change if player dies from anything but another player.

Changed the way item ownership is handled upon player death to set ownership to them (and their party) should a player...
azurebeats 16 files  4cab01d14413 28 Apr 20 15:18

×

×

Pin build

Cancel
×

Add build comment

Cancel
×

Promote Build

×

Add build comment

Cancel
×

Mute test

×

×

Server communication failure

Server is unavailable

Server stopped or communication with the server is not possible due to network failure.

Server shutdown started.

Please relogin to continue your work.

×

Run Custom Build

×

TODO

Loading related builds...
Cancel
×

Responsibility

×

Edit tags

Cancel
×

Loading...

×

Are you sure?

Cancel
×

Cancel