mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-24 22:55:59 +00:00
handle new snowball effect
This commit is contained in:
parent
7ddef238cb
commit
34958d522b
1 changed files with 6 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ class AvatarView : View {
|
|||
private var avatarBitmap: Bitmap? = null
|
||||
private var avatarCanvas: Canvas? = null
|
||||
private var currentLayers: Map<LayerType, String>? = null
|
||||
var enableNewSnowman = false
|
||||
|
||||
private val layerMap: Map<LayerType, String>
|
||||
get() {
|
||||
|
|
@ -214,7 +215,11 @@ class AvatarView : View {
|
|||
|
||||
avatar.stats?.buffs?.let { buffs ->
|
||||
if (buffs.snowball == true) {
|
||||
layerMap[LayerType.VISUAL_BUFF] = "snowman"
|
||||
if (Calendar.getInstance().get(Calendar.YEAR) > 2019) {
|
||||
layerMap[LayerType.VISUAL_BUFF] = "avatar_snowball_" + avatar.stats?.habitClass
|
||||
} else {
|
||||
layerMap[LayerType.VISUAL_BUFF] = "snowman"
|
||||
}
|
||||
hasVisualBuffs = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue