1
This commit is contained in:
parent
1daef7c0e4
commit
ea3d21091e
@ -266,10 +266,12 @@ void PlayerStats::ParseReward(Human* hum, a8::XObject& xobj)
|
|||||||
if (hero_xobj && hero_xobj->IsObject()) {
|
if (hero_xobj && hero_xobj->IsObject()) {
|
||||||
over_reward.hero.obtain_gold = hero_xobj->At("obtain_ceg")->AsXValue().GetString();
|
over_reward.hero.obtain_gold = hero_xobj->At("obtain_ceg")->AsXValue().GetString();
|
||||||
over_reward.hero.gold_limit = hero_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
over_reward.hero.gold_limit = hero_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
||||||
|
#if 0
|
||||||
if (hum->GetBattleContext()->hero_dto &&
|
if (hum->GetBattleContext()->hero_dto &&
|
||||||
hum->GetBattleContext()->hero_dto->IsObject()) {
|
hum->GetBattleContext()->hero_dto->IsObject()) {
|
||||||
over_reward.hero.id = hum->GetBattleContext()->hero_dto->At("hero_id")->AsXValue();
|
over_reward.hero.id = hum->GetBattleContext()->hero_dto->At("hero_id")->AsXValue();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -277,10 +279,12 @@ void PlayerStats::ParseReward(Human* hum, a8::XObject& xobj)
|
|||||||
if (weapon_xobj && weapon_xobj->IsObject()) {
|
if (weapon_xobj && weapon_xobj->IsObject()) {
|
||||||
over_reward.weapon1.obtain_gold = weapon_xobj->At("obtain_ceg")->AsXValue().GetString();
|
over_reward.weapon1.obtain_gold = weapon_xobj->At("obtain_ceg")->AsXValue().GetString();
|
||||||
over_reward.weapon1.gold_limit = weapon_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
over_reward.weapon1.gold_limit = weapon_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
||||||
|
#if 0
|
||||||
if (hum->GetBattleContext()->weapon_dto1 &&
|
if (hum->GetBattleContext()->weapon_dto1 &&
|
||||||
hum->GetBattleContext()->weapon_dto1->IsObject()) {
|
hum->GetBattleContext()->weapon_dto1->IsObject()) {
|
||||||
over_reward.hero.id = hum->GetBattleContext()->weapon_dto1->At("gun_id")->AsXValue();
|
over_reward.hero.id = hum->GetBattleContext()->weapon_dto1->At("gun_id")->AsXValue();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -288,10 +292,12 @@ void PlayerStats::ParseReward(Human* hum, a8::XObject& xobj)
|
|||||||
if (weapon_xobj && weapon_xobj->IsObject()) {
|
if (weapon_xobj && weapon_xobj->IsObject()) {
|
||||||
over_reward.weapon2.obtain_gold = weapon_xobj->At("obtain_ceg")->AsXValue().GetString();
|
over_reward.weapon2.obtain_gold = weapon_xobj->At("obtain_ceg")->AsXValue().GetString();
|
||||||
over_reward.weapon2.gold_limit = weapon_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
over_reward.weapon2.gold_limit = weapon_xobj->At("ceg_uplimit")->AsXValue().GetString();
|
||||||
|
#if 0
|
||||||
if (hum->GetBattleContext()->weapon_dto2 &&
|
if (hum->GetBattleContext()->weapon_dto2 &&
|
||||||
hum->GetBattleContext()->weapon_dto2->IsObject()) {
|
hum->GetBattleContext()->weapon_dto2->IsObject()) {
|
||||||
over_reward.hero.id = hum->GetBattleContext()->weapon_dto2->At("gun_id")->AsXValue();
|
over_reward.hero.id = hum->GetBattleContext()->weapon_dto2->At("gun_id")->AsXValue();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user