PR

【12/22】お正月ガチャ #1414

iwamoto opened this at 2021-12-21T14:41:26; closed

Description

opened by iwamoto at 2021-12-21T14:41:26; updated 2026-05-20T10:28:19

概要

【12/27】お正月ガチャ #1332
web: gacha_1227
db: gacha_1227
img: info_image_1332

仕様(把握できていること)
・毎日1回100コイン
・覚醒合成ボーナス+20(限定カード4種)
・初回10回連ガチャ & 2回目10回連続ガチャ おまけあり
・トレード解禁有
・新強化アイテムあり 4種類
・おみくじ(紅/白)でアイテムゲット
など

テスト方法、確認した内容

・開催期間
・カードの出現率と枚数

web & db & info_img をテスト用ブランチにマージして確認してください。

db変更内容

・master_item
・master_gacha
・master_gacha_item_rare
・master_card
・master_card_skill
・master_card_text
・master_composition_bonus

TODO

新スキルは対応中なのでそれ以外

iwamoto change_title at 2021-12-21T14:41:47: 【】 【12/22】お正月ガチャ
iwamoto add_label at 2021-12-21T14:41:50: デベロップへマージ
iwamoto add_label at 2021-12-21T14:41:54: レビュー待ち
iwamoto assign at 2021-12-21T14:41:58: Not assigned:iwamoto

Comment

#16050 by iwamoto at 2021-12-21T15:16:45; updated 2021-12-21T15:16:45

@wada @kouho
こちらご確認をお願い致します。

一部画像と強化アイテムのスキルに関しては対応中です
対応完了しましたら、連絡します。
それ以外で確認をお願い致します。

Comment

#16070 by wada at 2021-12-21T18:54:09; updated 2021-12-21T18:54:09

@iwamoto
2021年のお正月カードもGK設定お願いします。

ガチャページの紹介画像でシズクの属性がになっていました。
<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1640080361751CQV9m3bFte" width="400">

Comment

#16071 by iwamoto at 2021-12-21T19:22:39; updated 2021-12-21T19:22:39

@wada
画像に関しては依頼中です。
復刻カードのGK設定は抜けていたので追加しました。

Comment

#16088 by wada at 2021-12-22T10:32:21; updated 2021-12-22T10:32:21

@iwamoto
ありがとうございます。修正確認しました。

master_limited_gacha_ticket.csv のpushもお願いします。

Comment

#16092 by iwamoto at 2021-12-22T10:40:10; updated 2021-12-22T10:40:10

@wada
master_limited_gacha_ticket.csvの更新が漏れていたので対応しました。

Comment

#16095 by wada at 2021-12-22T10:52:48; updated 2021-12-22T10:52:48

@iwamoto
ガチャ実行前の確認画面でチケットの枚数が表示されていませんでした。
<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1640137919230mOoXbaNcmH" width="300">

Comment

#16101 by wada at 2021-12-22T11:22:30; updated 2021-12-22T11:25:24

@iwamoto
おみくじ使用後のタイトルは、ガチャページでも告知しているので、運勢の表示でお願いします。
<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/16401395525291SjKFkkp9U" width="400">

また、Item.tpl 684行目あたりのコメントアウトについて、プランナーOKでたら表示してください。
去年は福袋だからダメだったけど、おみくじなら許されるはず。
※去年の福袋を持ってるユーザーがいるので、条件分岐は必要です。

<!--
					<div class="lineheight1_3_white css_font11" style="padding: 5px; margin: 10px 15px; color: rgb(0, 0, 0); font-size: 20px;">
						ラッキー海賊:<span class="css_font14" style="font-size: 23px;" id="page_item_result_omikuji_luck_card_name"></span><br>
					</div>
-->

Comment

#16102 by kouho at 2021-12-22T11:23:33; updated 2021-12-22T11:23:33

@iwamoto
復刻カードは覚醒ボーナスがありませんが今の表示の順番だと勘違いされる可能性がありますので、
新限定カードは同カードの覚醒合成だとより強く!
などのように主語を付けている方が良いかと思いました。

!スクリーンショット 2021-12-22 11

Comment

#16103 by kouho at 2021-12-22T11:27:01; updated 2021-12-22T11:27:01

@iwamoto
トップページに福袋の紅は表示されましたが白は表示されていませんでした。
可能なら紅白両方とも表示していただけないでしょうか?
!スクリーンショット 2021-12-22 11

Comment

#16104 by wada at 2021-12-22T11:33:30; updated 2021-12-22T11:33:30

@kouho @iwamoto
テスト環境では$id = 223しか表示されないので、$id = 224を追加すればバナーは表示されますが、バナー画像が表示されませんでした。

	protected function _configureTestEnv()
	{
		$id = 223;
		$this->_config['start_time'][$id] -= (86400 * 10);
		$this->_config['coin_100_start_time'][$id] -= (86400 * 10);
	}

<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1640140236110641cXM5BP7" width="400">

Comment

#16106 by wada at 2021-12-22T11:41:13; updated 2021-12-22T11:41:13

@iwamoto
lib/Subfunc.inc のおみくじ使用時のアイテム付与について、PresentBoxManagerで期限つきアイテムをプレゼントBOXに付与する場合、引数を設定する仕様になっています。

foreach ($item_data as $item) {
	$order_list->add(new PresentBoxContent($item['item_type'], $item['item_no'], $item['count']));
}
// 付与
#引数でプレゼントフラグが必要
PresentBoxManager::getInstance()->send($order_list, ['present' => true]);

Comment

#16111 by iwamoto at 2021-12-22T14:31:51; updated 2021-12-22T14:31:51

@wada @kouho
こちら修正しました。

1.ガチャ実行前の確認画面でチケットの枚数が表示
2.おみくじ使用後のタイトルを運勢の表示
3.ラッキー海賊の表示&判定
4.トップページのバナー画像差し替え
5.おみくじ使用時の期間限定アイテムを直接付与からBOXへ

Comment

#16113 by wada at 2021-12-22T15:07:33; updated 2021-12-22T15:07:33

@iwamoto
ありがとうございます。修正確認しました。

Comment

#16114 by wada at 2021-12-22T15:21:44; updated 2021-12-22T15:21:44

@iwamoto
スキル「神酒振舞」について、
発動ターンのみ有効なので、lib/SubFunc.inc内で上昇した数値をリセットする設定が必要になります。

#lib/SubFunc.inc L47257
//鼓舞スキルなどで上がった攻撃力をターン終了時に戻す
foreach($card_data as $key => $value) {
...

Comment

#16115 by wada at 2021-12-22T15:58:42; updated 2021-12-22T15:58:42

@iwamoto
スキル「神匠の耀き」について、
船が攻撃を受けた際のスキル名表記を登録する必要があります。
また、def_flgが901のままだとスキルアイコンが正しく表示されないので、def_flgを16に書き換えるか、jsでスキルアイコンの処理を追加する必要があります。

#lib/SkillFunc.inc L50134
case 16:
	$defence_name = "シェルコーティング";
	break;

//case内でdef_flgを書き換えるか、jsの処理に追加するか
	$result['def_flg'] = 16; //16に書き換えると16の表示を流用できる

#js/JOLLYROGER_battle.js L12536
case 16://シェルコーティング
...
	$("#page_battle_player_team"+def_team+"_effect_card"+def_card_pos).append('<img id="page_battle_player_team' +def_team + '_effect_card' + def_card_pos +'_ef_281" src="'+define_server_img+'battle/ef281.png">');

Comment

#16116 by iwamoto at 2021-12-22T15:59:06; updated 2021-12-22T15:59:06

@wada
スキル「神酒振舞」について、
lib/SubFunc.inc内で上昇した数値をリセットする設定を追加しました。

Comment

#16117 by wada at 2021-12-22T16:29:35; updated 2021-12-22T16:29:35

@iwamoto
リセット対応確認しました。

Comment

#16120 by wada at 2021-12-22T17:22:09; updated 2021-12-22T17:22:09

@iwamoto
船のスキル表示以外はokです

Comment

#16121 by kouho at 2021-12-22T17:45:04; updated 2021-12-22T17:45:04

@iwamoto
対応ありがとうございます。修正確認しました。

確認ですが、お正月ガチャでは #796 で入れた保証設定はなくて大丈夫でしょうか?
10%の排出設定ですが、実際に回してみるとおみくじがガチャから排出されることが少なく感じたため質問しました。

Comment

#16123 by iwamoto at 2021-12-22T18:09:15; updated 2021-12-22T18:09:15

@wada
神匠の耀きの演出について修正を行いました。

Comment

#16124 by wada at 2021-12-22T18:28:17; updated 2021-12-22T18:28:17

@iwamoto
ありがとうございます。確認okです

wada add_label at 2021-12-22T18:28:20: 和田 LGTM

Comment

#16126 by iwamoto at 2021-12-22T18:29:49; updated 2021-12-22T18:29:49

@kouho
おみくじの排出については聞いてみます。
保証設定については、現状は仕様書で指定されたもののみを設定しています。

Comment

#16127 by iwamoto at 2021-12-22T19:27:03; updated 2021-12-22T19:27:03

@kouho
今回開催の結果を踏まえて次回調整されるとのことです。
今回のおみくじの仕様は初回のため、このままの排出設定でいきます

Comment

#16130 by kouho at 2021-12-23T09:53:22; updated 2021-12-23T09:53:22

@iwamoto
ありがとうございます。おみくじの仕様についてかしこまりました。
確認OKです。

kouho add_label at 2021-12-23T09:53:27: 皇甫 LGTM
iwamoto merge at 2021-12-23T10:32:47: 【12/22】お正月ガチャ
iwamoto close at 2021-12-23T10:32:47: Close

Commit range

base4d3d508e843f7790aebc4fc560c661927127f5f7
headce4b7b686081ececf6fbd37350341900461cc8b2
base branchjolly/jr-web:develop
head branchjolly/jr-web:gacha_1227

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed136 filesView patch
statusfile
modifiedlib/SkillFunc.inc
modifiedlib/SubFunc.inc
modifiedlib/ajax/build_selectList.inc
modifiedlib/ajax/item_result.inc
modifiedlib/conf/class/EventScheduleConfig.class.php
modifiedlib/conf/class/LocationShipConfig.class.php
modifiedlib/conf/class/OmikujiConfig.class.php
modifiedlib/conf/class/SPGachaConfig.class.php
modifiedlib/conf/define_y.inc
addedlib/models/gacha/NewYear_random.php
modifiedlib/models/gacha/SPGacha_manager.php
modifiedlib/public/Bar-GachaCheckDialogTicket.inc
modifiedlib/public/Bar-SPGacha.inc
modifiedlib/public/Bar-SPGachaCheck.inc
modifiedlib/public/Bar-SPGachaExec.inc
modifiedlib/public/Bar-SPGachaResult.inc
modifiedlib/public/Location.inc
modifiedlib/public/Main.inc
addedpublic_html/img/banner/Campaign/banner_location_2_1.jpg
addedpublic_html/img/banner/Campaign/banner_location_2_2.jpg
addedpublic_html/img/gacha/223/banner_gacha223.jpg
addedpublic_html/img/gacha/223/banner_gacha223_2.jpg
deletedpublic_html/img/gacha/223/banner_gacha223_reprint.jpg
modifiedpublic_html/img/gacha/223/gacha223.jpg
modifiedpublic_html/img/gacha/223/gacha223_2.jpg
deletedpublic_html/img/gacha/223/gacha223_bg.jpg
deletedpublic_html/img/gacha/223/gacha223_card_info116.jpg
deletedpublic_html/img/gacha/223/gacha223_card_info188.jpg
deletedpublic_html/img/gacha/223/gacha223_card_info192.jpg
deletedpublic_html/img/gacha/223/gacha223_card_info271.jpg
deletedpublic_html/img/gacha/223/gacha223_info.jpg
addedpublic_html/img/gacha/223/gacha223_info1.jpg
modifiedpublic_html/img/gacha/223/gacha223_info2.jpg
modifiedpublic_html/img/gacha/223/gacha223_info3.jpg
addedpublic_html/img/gacha/223/gacha223_info4.jpg
addedpublic_html/img/gacha/223/gacha223_info5.jpg
addedpublic_html/img/gacha/223/gacha223_info6.jpg
addedpublic_html/img/gacha/223/gacha223_info7.jpg
modifiedpublic_html/img/gacha/223/gacha223_title.jpg
addedpublic_html/img/gacha/223/gacha_result_top.jpg
modifiedpublic_html/img/gacha/224/banner_gacha224.jpg
modifiedpublic_html/img/gacha/224/banner_gacha224_2.jpg
modifiedpublic_html/img/gacha/224/gacha224.jpg
modifiedpublic_html/img/gacha/224/gacha224_2.jpg
deletedpublic_html/img/gacha/224/gacha224_card_info506.jpg
deletedpublic_html/img/gacha/224/gacha224_card_info554.jpg
deletedpublic_html/img/gacha/224/gacha224_card_info603.jpg
deletedpublic_html/img/gacha/224/gacha224_card_info607.jpg
deletedpublic_html/img/gacha/224/gacha224_info.jpg
addedpublic_html/img/gacha/224/gacha224_info1.jpg
modifiedpublic_html/img/gacha/224/gacha224_info2.jpg
modifiedpublic_html/img/gacha/224/gacha224_info3.jpg
modifiedpublic_html/img/gacha/224/gacha224_info4.jpg
addedpublic_html/img/gacha/224/gacha224_info5.jpg
addedpublic_html/img/gacha/224/gacha224_info6.jpg
addedpublic_html/img/gacha/224/gacha224_info7.jpg
modifiedpublic_html/img/gacha/224/gacha224_title.jpg
deletedpublic_html/img/gacha/224/gacha224_title2.jpg
addedpublic_html/img/gacha/224/gacha_result_top.jpg
addedpublic_html/img/gacha/check_ticket_5.jpg
addedpublic_html/img/gacha/gacha_coin_object223.png
addedpublic_html/img/gacha/gacha_coin_object223_1.png
addedpublic_html/img/gacha/gacha_coin_object223_2.png
addedpublic_html/img/gacha/gacha_coin_object224.png
addedpublic_html/img/gacha/gacha_coin_object224_1.png
addedpublic_html/img/gacha/gacha_coin_object224_2.png
addedpublic_html/img/info_event/info_event_322_1.jpg
addedpublic_html/img/info_event/info_event_322_2.jpg
addedpublic_html/img/info_event/info_event_325_1.jpg
addedpublic_html/img/info_event/info_event_325_2.jpg
addedpublic_html/img/info_jrye/1122/info1.jpg
addedpublic_html/img/info_jrye/1122/info2.jpg
addedpublic_html/img/info_jrye/1122/info3.jpg
addedpublic_html/img/info_jrye/1122/info4.jpg
addedpublic_html/img/info_jrye/1123/info1-1.jpg
addedpublic_html/img/info_jrye/1123/info1.jpg
addedpublic_html/img/info_jrye/1123/info2-2.jpg
addedpublic_html/img/info_jrye/1123/info2.jpg
addedpublic_html/img/info_jrye/1124/event_gold_01.jpg
addedpublic_html/img/info_jrye/1124/info1.jpg
addedpublic_html/img/info_jrye/1124/info2.jpg
addedpublic_html/img/info_jrye/1124/info3.jpg
addedpublic_html/img/info_jrye/1124/info4.jpg
addedpublic_html/img/info_jrye/1124/info5.jpg
addedpublic_html/img/info_jrye/1124/info6.jpg
addedpublic_html/img/info_jrye/1124/info7.jpg
addedpublic_html/img/info_jrye/1124/info8.jpg
addedpublic_html/img/info_jrye/1124/info9.jpg
addedpublic_html/img/info_jrye/1124/treasure_discovery_1.jpg
modifiedpublic_html/img/info_jrye/CharmInfo/222/info4-2.jpg
addedpublic_html/img/item/120/1905.jpg
addedpublic_html/img/item/120/1906.jpg
addedpublic_html/img/item/120/1907.jpg
addedpublic_html/img/item/120/1908.jpg
addedpublic_html/img/item/120/89.jpg
addedpublic_html/img/item/120/90.jpg
addedpublic_html/img/item/150/1905.jpg
addedpublic_html/img/item/150/1906.jpg
addedpublic_html/img/item/150/1907.jpg
addedpublic_html/img/item/150/1908.jpg
addedpublic_html/img/item/150/89.jpg
addedpublic_html/img/item/150/90.jpg
addedpublic_html/img/item/58/1905.jpg
addedpublic_html/img/item/58/1906.jpg
addedpublic_html/img/item/58/1907.jpg
addedpublic_html/img/item/58/1908.jpg
addedpublic_html/img/item/58/89.jpg
addedpublic_html/img/item/58/90.jpg
addedpublic_html/img/item/60/1905.jpg
addedpublic_html/img/item/60/1906.jpg
addedpublic_html/img/item/60/1907.jpg
addedpublic_html/img/item/60/1908.jpg
addedpublic_html/img/item/60/89.jpg
addedpublic_html/img/item/60/90.jpg
addedpublic_html/img/item/70/1905.jpg
addedpublic_html/img/item/70/1906.jpg
addedpublic_html/img/item/70/1907.jpg
addedpublic_html/img/item/70/1908.jpg
addedpublic_html/img/item/70/89.jpg
addedpublic_html/img/item/70/90.jpg
addedpublic_html/img/item/limited_gacha_ticket/120/5.jpg
addedpublic_html/img/item/limited_gacha_ticket/150/5.jpg
addedpublic_html/img/item/limited_gacha_ticket/58/5.jpg
addedpublic_html/img/item/limited_gacha_ticket/60/5.jpg
addedpublic_html/img/item/limited_gacha_ticket/70/5.jpg
modifiedpublic_html/js/JOLLYROGER.js
modifiedpublic_html/js/JOLLYROGER_battle.js
modifiedpublic_html/js/jr_battle.min.js
modifiedpublic_html/js/jr_main.min.js
modifiedpublic_html/template/Bar-SPGachaCheck.tpl
modifiedpublic_html/template/Bar-SPGachaResult.tpl
addedpublic_html/template/Bar-SPGacha_223.tpl
addedpublic_html/template/Bar-SPGacha_224.tpl
modifiedpublic_html/template/Item.tpl
modifiedpublic_html/template/Location.tpl
modifiedpublic_html/template/Main.tpl
Patch body is stored as a separate file to keep this page lightweight.