mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #659] [MERGED] Refactoring follow player/NPC variables and NPC magic numbers #2077
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/659
Author: @ipkpjersi
Created: 10/29/2024
Status: ✅ Merged
Merged: 12/6/2024
Merged by: @Dark98
Base:
master← Head:more-refactoring📝 Commits (7)
0248ee9Refactoring follow player/NPC variables2284267Magic number refactoring62f862eAdded more NPC refactoring778c15dMore NPC refactoring4892b03More refactoring and removed GWD NPCs3a09692Removed more GWD NPCs6e85220Refactored remaining NPC IDs📊 Changes
14 files changed (+305 additions, -428 deletions)
View changed files
📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java(+32 -30)📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java(+51 -118)📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcEmotes.java(+11 -10)📝
2006Scape Server/src/main/java/com/rs2/game/content/combat/range/DwarfCannon.java(+2 -1)📝
2006Scape Server/src/main/java/com/rs2/game/content/minigames/magetrainingarena/Alchemy.java(+2 -1)📝
2006Scape Server/src/main/java/com/rs2/game/content/skills/thieving/Stalls.java(+3 -1)📝
2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java(+62 -94)📝
2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java(+117 -149)📝
2006Scape Server/src/main/java/com/rs2/game/players/Player.java(+4 -4)📝
2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java(+15 -15)📝
2006Scape Server/src/main/java/com/rs2/net/packets/impl/AttackPlayer.java(+1 -1)📝
2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java(+3 -2)📝
2006Scape Server/src/main/java/com/rs2/net/packets/impl/FollowPlayer.java(+1 -1)📝
2006Scape Server/src/main/java/com/rs2/net/packets/impl/Walking.java(+1 -1)📄 Description
This one PR makes this code base so much more workable.
For example, I discovered that there was a bunch of GWD code in here, despite the fact that GWD wasn't added until 2007 not 2006.
Once this gets merged first I'll have to fix the merge conflicts in #658 after.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.