mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
fix naming
This commit is contained in:
@@ -453,7 +453,6 @@ export default function LogParser() {
|
|||||||
const cardRaw = cardMatch?.[1]?.trim() ?? 'Unknown Card'
|
const cardRaw = cardMatch?.[1]?.trim() ?? 'Unknown Card'
|
||||||
const cardClean = cardRaw.replace(/^(c_mp_|j_mp_)/, '')
|
const cardClean = cardRaw.replace(/^(c_mp_|j_mp_)/, '')
|
||||||
const cost = costMatch?.[1] ? Number.parseInt(costMatch[1], 10) : 0
|
const cost = costMatch?.[1] ? Number.parseInt(costMatch[1], 10) : 0
|
||||||
if (cost > 0) currentGame.moneySpent += cost
|
|
||||||
currentGame.events.push({
|
currentGame.events.push({
|
||||||
timestamp,
|
timestamp,
|
||||||
text: `Bought ${cardClean}${cost > 0 ? ` for $${cost}` : ''}`,
|
text: `Bought ${cardClean}${cost > 0 ? ` for $${cost}` : ''}`,
|
||||||
@@ -465,7 +464,6 @@ export default function LogParser() {
|
|||||||
if (costMatch?.[1]) {
|
if (costMatch?.[1]) {
|
||||||
const cost = Number.parseInt(costMatch[1], 10)
|
const cost = Number.parseInt(costMatch[1], 10)
|
||||||
if (!Number.isNaN(cost)) {
|
if (!Number.isNaN(cost)) {
|
||||||
currentGame.moneySpent += cost
|
|
||||||
currentGame.events.push({
|
currentGame.events.push({
|
||||||
timestamp,
|
timestamp,
|
||||||
text: `Rerolled shop for $${cost}`,
|
text: `Rerolled shop for $${cost}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user