This commit is contained in:
hujiabin 2023-07-04 11:24:45 +08:00
parent a91c844117
commit 951034c457
2 changed files with 11 additions and 2 deletions

View File

@ -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,

View File

@ -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();