1
This commit is contained in:
parent
a91c844117
commit
951034c457
@ -53,7 +53,7 @@ class HeroPreset extends BaseModel {
|
||||
}
|
||||
}else{
|
||||
$data = array(
|
||||
'skill_id' => mt\Skill::DEFAULT_SKILL,
|
||||
'skill_id' => mt\Skill::getDefSkill(),
|
||||
'weapon_uid1' => 0,
|
||||
'weapon_uid2' => 0,
|
||||
'gun_id1'=>0,
|
||||
|
@ -1,17 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace mt;
|
||||
require_once('mt/Skill.php');
|
||||
|
||||
use phpcommon;
|
||||
|
||||
class Skill {
|
||||
|
||||
const DEFAULT_SKILL = 10101;
|
||||
const DEFAULT_SKILL = 10401;
|
||||
public static function get($id)
|
||||
{
|
||||
return getXVal(self::getMetaList(), $id);
|
||||
}
|
||||
|
||||
public static function getDefSkill(){
|
||||
if (Parameter::getVal("hero_summoner_skill")){
|
||||
return Parameter::getVal("hero_summoner_skill");
|
||||
}else{
|
||||
return self::DEFAULT_SKILL;
|
||||
}
|
||||
}
|
||||
|
||||
public static function getPresetSkill()
|
||||
{
|
||||
$list = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user