Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
animals [2020/03/25 00:05] saph |
animals [2020/04/07 02:35] aster |
||
---|---|---|---|
Line 23: | Line 23: | ||
< | < | ||
< | < | ||
- | An animal attack can be on a person, on a project thereby decreasing its progress after having disrupted it, or on a domesticated animal. Animals attacking people can put them into an incapable state if they are low on health and standing outside. Animals will not finish off an incapable person. Tamed animals have a natural regeneration rate of +6 health per day. Barns allow them to heal +12 health per day. Walls completely remove attacks from wild animals against | + | An animal attack can be on a person, on a project thereby decreasing its progress after having disrupted it, or on a domesticated animal. Animals attacking people can put them into an incapable state if they are low on health and standing outside. Animals will not finish off an incapable person. Tamed animals have a natural regeneration rate of +6 health per day. Barns allow them to heal +12 health per day. Walls completely remove attacks from wild animals against |
Characters are safe from animal attacks in buildings and <a href=" | Characters are safe from animal attacks in buildings and <a href=" | ||
</ | </ | ||
Line 260: | Line 260: | ||
if (dir == " | if (dir == " | ||
- | if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) { | + | if ((!isNaN(x.innerHTML) && parseFloat(x.innerHTML) > parseFloat(y.innerHTML)) || |
+ | (isNaN(x.innerHTML) && | ||
shouldSwitch = true; | shouldSwitch = true; | ||
break; | break; | ||
} | } | ||
} else if (dir == " | } else if (dir == " | ||
- | if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) { | + | if ((!isNaN(x.innerHTML) && parseFloat(x.innerHTML) < parseFloat(y.innerHTML)) || |
+ | (isNaN(x.innerHTML) && | ||
shouldSwitch = true; | shouldSwitch = true; | ||
break; | break; |