setting up status effecs on mobs

This commit is contained in:
lilgreenland
2020-03-06 14:28:21 -08:00
parent 1fa80ecc79
commit d13c4e1ca8
5 changed files with 33 additions and 14 deletions

View File

@@ -142,6 +142,7 @@ const spawn = {
Matter.Body.setDensity(me, 0.0005) // normal density is 0.001 // this reduces life by half and decreases knockback
me.do = function () {
this.checkStatus()
this.seePlayerByLookingAt();
this.attraction();
};