프로토타입 테스트가 가능할 정도의 결재카드 데이터 추가
This commit is contained in:
@@ -23,8 +23,20 @@ export function GameScreen() {
|
||||
id: row.id,
|
||||
type: row.type,
|
||||
text: row.text,
|
||||
flavor: row.flavor,
|
||||
left: {
|
||||
text: row.left_text,
|
||||
stats: {
|
||||
res: row.left_res || 0,
|
||||
ent: row.left_ent || 0,
|
||||
rsk: row.left_rsk || 0,
|
||||
bud: row.left_bud || 0,
|
||||
per: row.left_per || 0,
|
||||
inf: row.left_inf || 0,
|
||||
wea: row.left_wea || 0,
|
||||
for: row.left_for || 0,
|
||||
sur: row.left_sur || 0,
|
||||
},
|
||||
effect: () => {
|
||||
setParams(p => ({
|
||||
resistance: Math.max(0, p.resistance + (row.left_res || 0)),
|
||||
@@ -45,6 +57,17 @@ export function GameScreen() {
|
||||
},
|
||||
right: {
|
||||
text: row.right_text,
|
||||
stats: {
|
||||
res: row.right_res || 0,
|
||||
ent: row.right_ent || 0,
|
||||
rsk: row.right_rsk || 0,
|
||||
bud: row.right_bud || 0,
|
||||
per: row.right_per || 0,
|
||||
inf: row.right_inf || 0,
|
||||
wea: row.right_wea || 0,
|
||||
for: row.right_for || 0,
|
||||
sur: row.right_sur || 0,
|
||||
},
|
||||
effect: () => {
|
||||
setParams(p => ({
|
||||
resistance: Math.max(0, p.resistance + (row.right_res || 0)),
|
||||
|
||||
Reference in New Issue
Block a user