Village happiness
Wetz1990 opened this issue ยท 7 comments
Minecolonies version
Version: 1.12.2-0.10.159-Alpha
Expected behavior
Villager happines level hits 10, and everyone is all excited and gets "born" wiht good stats
Actual behaviour
Villager level goes from 9.9 till 10. But, instead of setting the villager happiness level to 10 inside the townhall it gets set to 1.
This results in all the villagers getting born with 1-1-1 stats.
This explains how it is possible to go from 9.9 happiness level to 1 over one night not chanching anything.
I manually checked all my villagers, and they are all green in they hapiness messure.
Steps to reproduce the problem
- build village
- get happiness to 10
- it gets set to 1 in the town hall
no, not yet
Am Fr., 8. Feb. 2019 um 15:46 Uhr schrieb Wetz1990 <[email protected]
โฆ:
Did this get fixed in the latest version? 161-alpha
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3334 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGI9y8hYG7N_kNRjYpiFMxgTiCd89XLlks5vLbf7gaJpZM4av0Fd>
.
@Raycoms Some rounding derpage?
oh a code derp, found it!
if (happinessTotal > HappinessData.MAX_HAPPINESS)
{
happinessTotal = HappinessData.MIN_HAPPINESS;
}
Wow what a derp xD
โฆOn Fri, Feb 8, 2019, 13:14 someaddons ***@***.***> wrote:
oh a code derp, found it!
if (happinessTotal > HappinessData.MAX_HAPPINESS)
{
happinessTotal = HappinessData.MIN_HAPPINESS;
}
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3334 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGI9y46vjPcb876LT-EBTqnrxfx8MS3Aks5vLZQ8gaJpZM4av0Fd>
.