This assumes that the ownership is based on faction however, if a faction NPC is spawned by a player in creative mode, they could have the same owner as its enemy counterpart regardless of their respective factions. Each Ammo object compares the ownership of its spawning NpcBase object (which is the parent class of all faction NPCs such as witchbane and empire) to the NpcBase object it hits. The issues could be caused by misuse of the concept of ownership in Ammo.java. See that the ballista's projectile does not apply damageÄefinitive Solutions (Tested with IntelliJ build environment).Place two faction NPCs (not player owned) and give one of them a ballista.Current BehaviorÄ®ngineers from different NPC factions do not apply damage to each other due to faulty use of isOwnerOrSameTeamOrFriend() in /src/main/java/net/shadowmage/ancientwarfare/vehicle/missiles/Ammo.java Steps to Reproduce Expected BehaviorÄ®ngineers from different non-player NPC factions can apply damage to each other. Clean build with only the mod itself and its dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |