forked from 2009Scape/Server
Sheep now face player when sheared
This commit is contained in:
parent
1f2bd0f9fc
commit
3c9dea2830
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ class SheepBehavior : NPCBehavior(*sheepIds), InteractionListener {
|
|||
override fun defineListeners() {
|
||||
on(IntType.NPC, "shear") { player, node ->
|
||||
val sheep = node as NPC
|
||||
sheep.faceTemporary(player, 1)
|
||||
if (sheep.id == NPCs.SHEEP_3579) {
|
||||
if (player.questRepository.getQuest("Sheep Shearer").isStarted(player)) {
|
||||
setAttribute(player, ATTR_IS_PENGUIN_SHEEP_SHEARED, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue