nakano15 / terraguardians

TerraGuardians 1.4 source code. 1.3 source is named "giantsummon".
7 stars 4 forks source link

companions dont know how to walk through cactus causeing them to constantly grapple #19

Closed AnukWarrior closed 1 year ago

AnukWarrior commented 1 year ago

https://github.com/nakano15/terraguardians/assets/89364836/16a7a4b4-38b4-4a66-b9d6-129fdee480f9

nakano15 commented 1 year ago

Fixed. The reason why that was happening is because in Constant worlds, the Cactus causes damage to player. The game recognizes as Cactus can inflict damage regardless of world type, but there must be some internal code that checks wether you're in Constant or not, to decide wether or not cactus will inflict damage. Companions scripts will now better know to identify if it's a cactus, and if the companion should treat it as a dangerous tile or not depending on world type.