Decompile fn_23811 (CSession::GetPetHungryStateString)
Batch #1625 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_23811 CSession::GetPetHungryStateString: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
ef5ff48035
commit
4bce141e4c
2 changed files with 31 additions and 0 deletions
|
|
@ -200,6 +200,7 @@ public:
|
|||
int GetPetFriendlyState(int friendly);
|
||||
void GetPetFriendlyStateString(int friendly, char* buffer);
|
||||
int GetPetHungryState(int hunger);
|
||||
void GetPetHungryStateString(int hunger, char* buffer);
|
||||
int GetPetEmotionNumber(int job, int action, int hungerLevel);
|
||||
void ClearItemSelection();
|
||||
bool IsReducedSkill(int skillId) const;
|
||||
|
|
|
|||
|
|
@ -78,6 +78,36 @@ int CSession::GetPetHungryState(int hunger) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E0B040
|
||||
// FUNCTION: fn_23811
|
||||
void CSession::GetPetHungryStateString(int hunger, char* buffer) {
|
||||
if (hunger >= 0) {
|
||||
if (hunger <= 10) {
|
||||
std::strcpy(buffer, "배고픔");
|
||||
return;
|
||||
}
|
||||
if (hunger <= 25) {
|
||||
std::strcpy(buffer, "출출함");
|
||||
return;
|
||||
}
|
||||
if (hunger <= 75) {
|
||||
std::strcpy(buffer, "보통");
|
||||
return;
|
||||
}
|
||||
if (hunger <= 90) {
|
||||
std::strcpy(buffer, "배부름");
|
||||
return;
|
||||
}
|
||||
if (hunger <= 100) {
|
||||
std::strcpy(buffer, "아주 배부름");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const char unknown[] = {'\xB8', '\xF4', '\xB6', '\xF3', '\xBF', '\xE4', '.', '\0'};
|
||||
std::memcpy(buffer, unknown, sizeof(unknown));
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E12830
|
||||
// FUNCTION: fn_23817
|
||||
int CSession::GetPetEmotionNumber(int job, int action, int hungerLevel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue