| 1200 | } |
| 1201 | |
| 1202 | void increaseLevel(Entity &ent) |
| 1203 | { |
| 1204 | qCDebug(logMapEvents) << "Increasing Level"; |
| 1205 | setLevel(*ent.m_char, getLevel(*ent.m_char)+1); |
| 1206 | // increase security level every time we visit a trainer and level up |
| 1207 | ++ent.m_char->m_char_data.m_security_threat; |
| 1208 | ent.m_char->m_client_window_state = ClientWindowState::None; // we're done training |
| 1209 | |
| 1210 | QString contents = FloatingInfoMsg.find(FloatingMsg_Leveled).value(); |
| 1211 | sendFloatingInfo(*ent.m_client, contents, FloatingInfoStyle::FloatingInfo_Attention, 4.0); |
| 1212 | } |
| 1213 | |
| 1214 | |
| 1215 | /* |
no test coverage detected