blob: d8061683b9459df6c604108cbd89f270455563fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package at.hannibal2.skyhanni.data
object PetAPI {
// Contains color code + name and for older SkyHanni users maybe also the pet level
var currentPet: String?
get() = ProfileStorageData.profileSpecific?.currentPet
set(value) {
ProfileStorageData.profileSpecific?.currentPet = value
}
fun isCurrentPet(petName: String): Boolean = currentPet?.contains(petName) ?: false
}
|