fix granting hp xp on controlled
This commit is contained in:
@@ -71,3 +71,4 @@
|
|||||||
- Spending points to cancel your slayer task no longer sets your task streak to 0.
|
- Spending points to cancel your slayer task no longer sets your task streak to 0.
|
||||||
- Stars now have bots that will spawn and help mine for stars higher than level 5.
|
- Stars now have bots that will spawn and help mine for stars higher than level 5.
|
||||||
- Barrows equipment now lasts for 15 hours of combat instead of 40 minutes of combat.
|
- Barrows equipment now lasts for 15 hours of combat instead of 40 minutes of combat.
|
||||||
|
- Fix granting hp xp on controlled
|
||||||
|
|||||||
@@ -410,6 +410,10 @@ abstract class CombatSwingHandler(var type: CombatStyle?) {
|
|||||||
}
|
}
|
||||||
if (state != null) {
|
if (state != null) {
|
||||||
val hit = state.totalDamage
|
val hit = state.totalDamage
|
||||||
|
if (entity is Player) {
|
||||||
|
player.skills.addExperience(Skills.HITPOINTS, hit * 1.33, true)
|
||||||
|
}
|
||||||
|
|
||||||
var skill = -1
|
var skill = -1
|
||||||
when (attStyle) {
|
when (attStyle) {
|
||||||
WeaponInterface.STYLE_DEFENSIVE -> skill = Skills.DEFENCE
|
WeaponInterface.STYLE_DEFENSIVE -> skill = Skills.DEFENCE
|
||||||
@@ -441,7 +445,6 @@ abstract class CombatSwingHandler(var type: CombatStyle?) {
|
|||||||
}
|
}
|
||||||
if (skill < 0) return
|
if (skill < 0) return
|
||||||
player.skills.addExperience(skill, hit * EXPERIENCE_MOD, true)
|
player.skills.addExperience(skill, hit * EXPERIENCE_MOD, true)
|
||||||
player.skills.addExperience(Skills.HITPOINTS, hit * 1.33, true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user