1
This commit is contained in:
parent
44fc07e4ef
commit
c2d24c126d
@ -65,6 +65,9 @@ class GMController extends BaseAuthedController {
|
|||||||
'.addhero' => function () use($params) {
|
'.addhero' => function () use($params) {
|
||||||
$this->addHero($params);
|
$this->addHero($params);
|
||||||
},
|
},
|
||||||
|
'.dechp' => function () use($params) {
|
||||||
|
$this->decHP($params);
|
||||||
|
},
|
||||||
'.loot' => function () use($params) {
|
'.loot' => function () use($params) {
|
||||||
$this->lootTest($params);
|
$this->lootTest($params);
|
||||||
}
|
}
|
||||||
@ -342,4 +345,17 @@ END
|
|||||||
myself()->_rspOk();
|
myself()->_rspOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function decHP($params)
|
||||||
|
{
|
||||||
|
$itemNum = getXVal($params, 0, 0);
|
||||||
|
$userInfo = myself()->_getUserInfo('gold');
|
||||||
|
$oldGOld = myself()->_getItemCount(V_ITEM_GOLD, $userInfo);
|
||||||
|
$decItems = array(
|
||||||
|
array(
|
||||||
|
'item_id' => V_ITEM_GOLD,
|
||||||
|
'item_num' => $iteNum
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user