| 3073 | } |
| 3074 | |
| 3075 | void Creature::setInJail(Room* prison) |
| 3076 | { |
| 3077 | if(prison == nullptr) |
| 3078 | { |
| 3079 | if(mSeatPrison == nullptr) |
| 3080 | return; |
| 3081 | |
| 3082 | mSeatPrison = nullptr; |
| 3083 | mNeedFireRefresh = true; |
| 3084 | return; |
| 3085 | } |
| 3086 | |
| 3087 | // Creature is set in prison |
| 3088 | if(mSeatPrison == prison->getSeat()) |
| 3089 | return; |
| 3090 | |
| 3091 | mSeatPrison = prison->getSeat(); |
| 3092 | mNeedFireRefresh = true; |
| 3093 | } |
| 3094 | |
| 3095 | bool Creature::isDangerous(const Creature* creature, int distance) const |
| 3096 | { |
no test coverage detected