PR

【10/13】バトルイベント 4 #332

iwamoto opened this at 2020-10-08T14:23:41; closed

Description

opened by iwamoto at 2020-10-08T14:23:41; updated 2023-03-13T10:39:03

【10/13】バトルイベント #317

Comment

#7650 by iwamoto at 2020-10-08T14:24:37; updated 2020-10-08T14:24:37

@wada
こちらレビュー等お願い致します。

Comment

#7655 by wada at 2020-10-08T15:05:54; updated 2020-10-08T15:05:54

達成報酬の12000が快速に、90000が抜けてます。

Comment

#7657 by iwamoto at 2020-10-08T15:12:50; updated 2020-10-08T15:12:50

@wada
すみません、こちら修正対応を行いました

達成報酬の12000を特急に
達成報酬の90000を限定カードを追加

Comment

#7658 by wada at 2020-10-08T15:23:17; updated 2020-10-08T15:23:17

船ボーナスが今回はキャラックスタートみたいです。

Comment

#7660 by iwamoto at 2020-10-08T15:35:10; updated 2020-10-08T15:35:10

@wada
船ボーナス修正しました

Comment

#7665 by wada at 2020-10-08T16:49:39; updated 2020-10-08T16:49:39

Battle_event_model.phpで存在しないメソッドを呼び出してます。

$user_event_pt_dao->create_user_event_pt($user_info['user_no'], $user_info['team_no'], 0);

Comment

#7666 by wada at 2020-10-08T17:00:42; updated 2020-10-08T17:00:42

@iwamoto
処理上は問題ないところですが、とりあえず以下の2点を確認して欲しいです。

絶対に使用しないであろうコメントアウトは削除して欲しい

//require_once dirname(__FILE__).'/raid/Team_raid_monster.php';
//require_once dirname(__FILE__).'/raid/Battle_user.php';
//require_once dirname(__FILE__).'/raid/Attack_bonus.php';
//
//use lib\models\raid\Team_raid_monster;
//use lib\models\raid\Battle_user;
//use lib\models\raid\Attack_bonus;

ある程度、現状のコーディングルールに従って欲しい

# メソッド名の後にスペースを入れない
public function pirates_num_of_defeated_rest (array $user_info)

# アロー演算子の前後にスペースを入れない
$battle_up_rate = $battle_event_class -> battle_rate_adjustment($user_mission['m_event_limit']);

# 返り値がnullでない場合、型宣言でnullable指定しない
public function battle_rate_adjustment(int $m_event_limit): ?int // int

Comment

#7670 by iwamoto at 2020-10-08T17:44:09; updated 2020-10-08T17:44:09

@wada
すみません、上記指摘のコード修正を行いました。

Comment

#7678 by wada at 2020-10-09T17:33:51; updated 2020-10-09T17:33:51

@iwamoto
確認しました。

iwamoto merge at 2020-10-09T18:07:30: 【10/13】バトルイベント 4
iwamoto close at 2020-10-09T18:07:30: Close

Commit range

base17d994df709642ccdf79052f9b9210504c5b19be
head531e5eea2303faa866f5986bdcbfadb0705ff563
base branchjolly/jr-web:develop
head branchjolly/jr-web:event_battle_4_317

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed11 filesView patch
statusfile
modifiedlib/SubFunc.inc
modifiedlib/SubFunc_mission.inc
modifiedlib/ajax/mission_default.inc
modifiedlib/conf/class/BattleEventConfig.class.php
modifiedlib/conf/define_y.inc
modifiedlib/exec/tool_event_battle_present.inc
addedlib/models/Battle_event_model.php
addedlib/models/dao/user_enemy_battle_deckdata.php
modifiedlib/models/dao/user_event_pt.php
addedlib/models/dao/user_info.php
modifiedpublic_html/template/Mission.tpl
Patch body is stored as a separate file to keep this page lightweight.