PR

カードのボーナス値補正 #374

wada opened this at 2020-10-27T15:43:21; closed

Description

opened by wada at 2020-10-27T15:43:21; updated 2023-04-28T16:33:30

issue #372

card_no:94の覚醒ボーナスを+10にして再計算
所持カードとストックの覚醒ボーナスを上書き

ボーナス+40状態(10/26 15:30まで)の覚醒で使用したアイテムは返還
・GOLD
・アクセ
・経験値

トレード前の覚醒に関しては、最大ボーナスになるように計算
アクセの枠が全て+50
(調査しきれないため、修正後に覚醒してトレードした場合も最大ボーナスで計算)

Comment

#7932 by wada at 2020-10-27T15:48:29; updated 2020-10-27T15:48:29

@iwamoto
レビューお願いします。
・カードのボーナス値が更新されるか
・報酬が正しく配布されるか
・更新後のデータと実際にゲームで覚醒させた値が一致するか

ローカルで実行する場合

#dry_run
ENVIRONMENT=development PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=true DRY_RUN=1 php tool_card_bonus_recalculation.php

#更新
ENVIRONMENT=development PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=true DRY_RUN=0 php tool_card_bonus_recalculation.php

#ログ
log/tool_card_bonus_recalculation20201027.txt

テスト用データ
user_card_holder.sql
log_composition.sql
user_card_pot.sql

Comment

#7933 by wada at 2020-10-27T15:49:24; updated 2020-10-27T15:49:24

ローカルのmaster_composition_bonus削除お忘れなく

Comment

#7934 by iwamoto at 2020-10-27T17:37:03; updated 2020-10-27T17:37:03

@wada

・カードのボーナス値が更新されるか
・報酬が正しく配布されるか
・更新後のデータと実際にゲームで覚醒させた値が一致するか

こちら三点問題ないこと確認しました。

wada delete_label at 2020-10-27T18:01:42: レビュー待ち
wada merge at 2020-10-27T18:03:46: カードのボーナス値補正
wada close at 2020-10-27T18:03:46: Close

Commit range

base0daddaa1700e44c7bc97ae752b3b19fab786ae23
head4da9537c9d698e25c4f7d36e6f9e974fba606d12
base branchjolly/jr-web:develop
head branchjolly/jr-web:fix_bonus_372

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/ajax/build_imgBreak.inc
modifiedlib/ajax/main_build.inc
modifiedlib/class/building/BuildingStorageManager.class.php
addedlib/exec/tool_card_bonus_recalculation.php
modifiedpublic_html/img/info_jrye/CharmInfo/118/info2.jpg
modifiedpublic_html/img/info_jrye/CharmInfo/118/info3.jpg
modifiedpublic_html/img/info_jrye/CharmInfo/118/info4.jpg
modifiedpublic_html/img/info_jrye/CharmInfo/118/info5.jpg
modifiedpublic_html/template/Bar-Default.tpl
modifiedpublic_html/template/History-SkillBallMedal.tpl
Patch body is stored as a separate file to keep this page lightweight.