1
This commit is contained in:
parent
01c00b12af
commit
5cf43a7e50
24
webapp/mt/FormulaPvp.php
Normal file
24
webapp/mt/FormulaPvp.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace mt;
|
||||||
|
|
||||||
|
use phpcommon;
|
||||||
|
|
||||||
|
class FormulaPvp {
|
||||||
|
|
||||||
|
public static function get($id)
|
||||||
|
{
|
||||||
|
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static function getMetaList()
|
||||||
|
{
|
||||||
|
if (!self::$metaList) {
|
||||||
|
self::$metaList = getMetaTable('pvp@formula.php');
|
||||||
|
}
|
||||||
|
return self::$metaList;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static $metaList;
|
||||||
|
|
||||||
|
}
|
@ -14,12 +14,19 @@ class FormulaService extends BaseService {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function calcHeroPvpCeg($heroDb)
|
public static function calcHeroPvpCeg($heroDb, $params)
|
||||||
{
|
{
|
||||||
|
//PVP角色NFT每日获得极限*(50%*[每局排名TopX%对应比例]+25%*[每局PK人数排名TopX%对应比例]+15%*[每局英雄属性排名TopX%对应比例]+5%*[每局武器属性排名TopX%对应比例]+5%*[每局存活时间排名TopX%对应比例])
|
||||||
|
$upLimit = getXVal($params, 'uplimit');
|
||||||
|
$ranked = getXVal($params, 'ranked');
|
||||||
|
$killsRanked = getXVal($params, 'kills_ranked');
|
||||||
|
$heroRanked = getXVal($params, 'hero_ranked');
|
||||||
|
$weaponRanked = getXVal($params, 'weapon_ranked');
|
||||||
|
$aliveRanked = getXVal($params, 'alive_ranked');
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function calcHeroPveCeg($heroDb)
|
public static function calcHeroPveCeg($heroDb, $uplimit)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user