Closed aroberge closed 7 years ago
The .fatal
attribute is set correctly; just need to implement protection.
Implemented by checking properties of carried objects. Basically, instead of protecting the robot, we have objects (like "bridge"
) that protects against some fatalities ("mud"
and "water"
for "bridge"
). If these objects are either carried by Reeborg or used as bridges, they can offer protection.
Instead of simply having tile properties like:
we should have instead:
and implement something like
When moving (teleporting included) onto a fatal tile, we should check to see if there is protection against it.