This commit is contained in:
hant 2025-12-13 16:02:24 +08:00
parent 3dbe8cbd73
commit 7b3b3f4edc
6 changed files with 15 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -1149,8 +1149,8 @@
"hp": 1, "hp": 1,
"patk": 0, "patk": 0,
"matk": 0, "matk": 0,
"pdef": 999, "pdef": 100,
"mdef": 999, "mdef": 100,
"crit": 0, "crit": 0,
"critdmg": 100, "critdmg": 100,
"exp": 800, "exp": 800,

1
src/Data/quest.json Normal file
View File

@ -0,0 +1 @@
[null,"升仙令","古传送阵残图","结丹期修为","虚天残图","九曲灵参","元婴初期修为","大晋地域图","开启昆吾山的封印密钥","五行灵婴(集齐)","稳定的空间节点坐标","飞升通道的临时通行符"]

View File

@ -81,16 +81,18 @@ class Monster extends Actor
} }
$monsterConfig_allow = []; $monsterConfig_allow = [];
foreach ($monsterConfig as $item){ foreach ($monsterConfig as $item){
if ($item['level'] <= $play_level){
if ($dungeonId < 2){
$limit = $play_level;
}else{
$limit = $play_level * 2;
}
if ($item['level'] <= $limit){
$monsterConfig_allow [] = $item; $monsterConfig_allow [] = $item;
} }
} }
if (empty($monsterConfig_allow)){ if (empty($monsterConfig_allow)){
if ($dungeonId < 2){
$monsterConfig_allow = $monsterConfig[0]; $monsterConfig_allow = $monsterConfig[0];
}else{
$monsterConfig_allow = $monsterConfig;
}
} }
// dd($monsterConfig_allow,$dungeonId); // dd($monsterConfig_allow,$dungeonId);
$monsterConfig = $monsterConfig_allow; $monsterConfig = $monsterConfig_allow;

View File

@ -15,7 +15,7 @@ class Consume extends Item
$data = file_get_contents(__DIR__.'/../../Data/consume.json'); $data = file_get_contents(__DIR__.'/../../Data/consume.json');
$data = json_decode($data,true); $data = json_decode($data,true);
$name = $data[$dungeonId]['name']; $name = $data[$dungeonId]['recovery']['name'];
$heal = $level * 10 * 3; $heal = $level * 10 * 3;
return [ return [
'id' => uniqid('consume_'), 'id' => uniqid('consume_'),

View File

@ -6,10 +6,10 @@ use Game\Modules\Bag\Spell;
require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/../vendor/autoload.php';
$data = file_get_contents('/Users/hant/MyData/study/idle/src/Data/map.json'); $data = file_get_contents('/Users/hant/Data/idle/src/Data/map.json');
$data = json_decode($data,true); $data = json_decode($data,true);
$data = array_column($data,'key_item'); $data = array_column($data,'key_item');
file_put_contents('/Users/hant/MyData/study/idle/src/Data/quest.json',json_encode($data,JSON_UNESCAPED_UNICODE)); file_put_contents('/Users/hant/Data/idle/src/Data/quest.json',json_encode($data,JSON_UNESCAPED_UNICODE));