Skip to content

Commit df0762c

Browse files
committed
bugfix : can't use physics, it's a typo
1 parent c34dadd commit df0762c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

asset/test/advance.dl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# test POWER action
1+
# test ADVANCE action
22

33
setup :
44
to : colony
@@ -14,7 +14,7 @@ start :
1414
type : tech
1515
name : TEST
1616
adv :
17-
chemistry
17+
*chemistry
1818
M
1919
---
2020
to : colony

gameplay/advance.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local table = table
2121
global pairs, error, print, print_r, ipairs
2222

2323
local CARD_COPY <const> = "$(card.copy)"
24-
local CHOOSE <const> = { phycics = true }
24+
local CHOOSE <const> = { physics = true }
2525
local REDRAW <const> = { chemistry = true }
2626
local TRACK <const> = {
2727
engineering = true,

gameplay/card.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,18 @@ function card.generate_newcard()
364364
end
365365

366366
local function convert_adv(advname)
367+
local circle
368+
if advname and advname:sub(1,1) == "*" then
369+
circle = true
370+
advname = advname:sub(2)
371+
end
367372
local c = advancement.config(advname)
368373
if c then
369374
return {
370375
suit = c.suit,
371376
value = c.value,
372377
era = HISTORY.era,
378+
chosen = circle,
373379
}
374380
end
375381
end

0 commit comments

Comments
 (0)