BODY_SIZE Creature::GetSize(void)
{
- return (BODY_SIZE)(sqrt((double)this->height * (double)this->weight / 10.0f));
+ return (BODY_SIZE)(sqrt((double)this->height * (double)this->weight) / 10.0f);
}
POS_ORDER,
POS_CHAOS,
POS_BALANCE,
+ POS_HEIGHT,
+ POS_WEIGHT,
+ POS_BODY_SIZE,
POS_MAX
};
{200, 210, 0, 0},
{200, 230, 0, 0},
{200, 250, 0, 0},
+ {10, 130, 0, 0},
+ {10, 150, 0, 0},
+ {10, 170, 0, 0},
};
SDL_Rect CreatureStatusViewRect[POS_MAX];
sprintf_s(statusBuf[POS_CON], STATUS_BUFSIZE, "\91Ï\8bv:%4d", creaturePtr->GetCurrentStatus(CS_CON));
sprintf_s(statusBuf[POS_CHA], STATUS_BUFSIZE, "\96£\97Í:%4d", creaturePtr->GetCurrentStatus(CS_CHA));
sprintf_s(statusBuf[POS_SOUL], STATUS_BUFSIZE, "\83\\83E\83\8b:%4d", creaturePtr->GetCurrentSoul());
+ sprintf_s(statusBuf[POS_HEIGHT], STATUS_BUFSIZE, "\90g\92·:%6dcm", creaturePtr->GetHeight());
+ sprintf_s(statusBuf[POS_WEIGHT], STATUS_BUFSIZE, "\91Ì\8fd:%6dkg", creaturePtr->GetWeight());
+ sprintf_s(statusBuf[POS_BODY_SIZE], STATUS_BUFSIZE, "\91Ì\8ai:%3d", creaturePtr->GetSize());
for(id = 0; id < POS_MAX; id++)
{