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