MCPcopy Create free account
hub / github.com/Segs/Segs / increaseLevel

Function increaseLevel

Projects/CoX/Servers/MapServer/DataHelpers.cpp:1202–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void 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/*

Callers 2

on_dialog_buttonMethod · 0.85
on_levelup_responseMethod · 0.85

Calls 5

setLevelFunction · 0.85
getLevelFunction · 0.85
sendFloatingInfoFunction · 0.85
valueMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected