-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
252 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
|
||
//各级给的卡片奖励 | ||
$ach360_card_prize = array( | ||
3 => 164, | ||
); | ||
|
||
function init() | ||
|
90 changes: 90 additions & 0 deletions
90
include/modules/extra/activities/lunany2018/skill362/main.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?php | ||
|
||
namespace skill362 | ||
{ | ||
//各级要完成的成就名,如果不存在则取低的 | ||
$ach362_name = array( | ||
1=>'红包拿来 LV1', | ||
2=>'红包拿来 LV2', | ||
3=>'红包拿来 LV3', | ||
); | ||
|
||
//各级显示的要求,如果不存在则取低的 | ||
$ach362_desc= array( | ||
1=>'击杀NPC获得的切糕数目达到<:threshold:>', | ||
); | ||
|
||
$ach362_proc_words = '目前进度'; | ||
|
||
$ach362_unit = '切糕'; | ||
|
||
//各级阈值,注意是达到这个阈值则升到下一级 | ||
$ach362_threshold = array( | ||
1 => 100, | ||
2 => 800, | ||
3 => 6400, | ||
999 => NULL | ||
); | ||
|
||
//各级给的切糕奖励 | ||
$ach362_qiegao_prize = array( | ||
1 => 66, | ||
2 => 666, | ||
3 => 6666, | ||
); | ||
|
||
//各级给的卡片奖励 | ||
$ach362_card_prize = array( | ||
3 => array(200, 201, 202, 203, 204), | ||
); | ||
|
||
function init() | ||
{ | ||
define('MOD_SKILL362_INFO','achievement;spec-activity;'); | ||
define('MOD_SKILL362_ACHIEVEMENT_ID','62'); | ||
} | ||
|
||
function acquire362(&$pa) | ||
{ | ||
if (eval(__MAGIC__)) return $___RET_VALUE; | ||
\skillbase\skill_setvalue(362,'cnt','0',$pa); | ||
} | ||
|
||
function lost362(&$pa) | ||
{ | ||
if (eval(__MAGIC__)) return $___RET_VALUE; | ||
} | ||
|
||
function ach_finalize_process(&$pa, $data, $achid) | ||
{ | ||
if (eval(__MAGIC__)) return $___RET_VALUE; | ||
$ret = $chprocess($pa, $data, $achid); | ||
if($achid == 362){ | ||
$var = (int)\skillbase\skill_getvalue($achid,'cnt',$pa); | ||
$ret += $var; | ||
} | ||
return $ret; | ||
} | ||
|
||
function show_achievement_icon($achid, $c, $top_flag) | ||
{ | ||
if (eval(__MAGIC__)) return $___RET_VALUE; | ||
$ret = $chprocess($achid, $c, $top_flag); | ||
if(362 == $achid) { | ||
$ret = \skill360\get_lny2018_icon($achid, $c, $top_flag); | ||
} | ||
return $ret; | ||
} | ||
|
||
function battle_get_qiegao(&$pa,&$pd,$active){ | ||
if (eval(__MAGIC__)) return $___RET_VALUE; | ||
$ret = $chprocess($pa,$pd,$active); | ||
if(\skillbase\skill_query(362,$pa)) { | ||
$cnt353 = (int)\skillbase\skill_getvalue(362,'cnt',$pa); | ||
\skillbase\skill_setvalue(362,'cnt',$cnt353+$ret,$pa); | ||
} | ||
return $ret; | ||
} | ||
} | ||
|
||
?> |
15 changes: 15 additions & 0 deletions
15
include/modules/extra/activities/lunany2018/skill362/module.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace skill362 | ||
{ | ||
////////// MODULE HEADER START /////////////// | ||
$___MODULE_dependency = 'skillbase sys player achievement_base skill360 cardbase'; | ||
$___MODULE_dependency_optional = ''; | ||
$___MODULE_conflict = ''; | ||
$___MODULE_codelist = 'main.php'; | ||
$___MODULE_templatelist = ''; | ||
////////// MODULE HEADER END ///////////////// | ||
require __INIT_MODULE__(__NAMESPACE__,__DIR__); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.