Difficulty scaling/zh: Difference between revisions

Created page with "<source lang="c++"> float points = 0.0; for (kill_flag : this->byml["flag"]) // 枚舉所有敵人   int kill_count = GameData::getIntegerFlag(kill_flag["name"]);   poin..."
(Created page with "有趣的是,遊戲利用殺敵數計算經驗值時,會把一個「原始經驗值」轉化成「用在武器升級的經驗值」跟「用在敵人升級的經驗值」...")
(Created page with "<source lang="c++"> float points = 0.0; for (kill_flag : this->byml["flag"]) // 枚舉所有敵人   int kill_count = GameData::getIntegerFlag(kill_flag["name"]);   poin...")
Line 212: Line 212:
<source lang="c++">
<source lang="c++">
float points = 0.0;
float points = 0.0;
for (kill_flag : this->byml["flag"])
for (kill_flag : this->byml["flag"]) // 枚舉所有敵人
    int kill_count = GameData::getIntegerFlag(kill_flag["name"]);
   int kill_count = GameData::getIntegerFlag(kill_flag["name"]);
    points += kill_count * kill_flag["point"];
   points += kill_count * kill_flag["point"]; // 殺敵數 * 此敵人的分數


this->points = points;
this->points = points;