Add tag field placement achievements

This commit is contained in:
Alejandro 2019-05-27 00:45:51 +03:00
parent 8aae182f6a
commit 944115d12c
2 changed files with 22 additions and 0 deletions

View File

@ -44,4 +44,15 @@ public class InteractionIceTagField extends InteractionTagField {
this.stepTimes.remove(habbo);
}
}
@Override
public void onPlace(Room room) {
super.onPlace(room);
Habbo itemOwner = Emulator.getGameEnvironment().getHabboManager().getHabbo(this.getUserId());
if (itemOwner != null) {
AchievementManager.progressAchievement(itemOwner, Emulator.getGameEnvironment().getAchievementManager().getAchievement("TagA"));
}
}
}

View File

@ -43,4 +43,15 @@ public class InteractionRollerskateField extends InteractionTagField {
this.stepTimes.remove(habbo);
}
}
@Override
public void onPlace(Room room) {
super.onPlace(room);
Habbo itemOwner = Emulator.getGameEnvironment().getHabboManager().getHabbo(this.getUserId());
if (itemOwner != null) {
AchievementManager.progressAchievement(itemOwner, Emulator.getGameEnvironment().getAchievementManager().getAchievement("RbTagA"));
}
}
}