File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ namespace :cards do
92
92
faction_id : card [ "faction_id" ] ,
93
93
agenda_points : card [ "agenda_points" ] ,
94
94
base_link : card [ "base_link" ] ,
95
- # TODO(plural): Ensure that any cards with cost X have that reflected properly.
96
- cost : card [ "cost" ] ,
97
95
deck_limit : card [ "deck_limit" ] ,
98
96
influence_cost : card [ "influence_cost" ] ,
99
97
influence_limit : card [ "influence_limit" ] ,
@@ -109,6 +107,9 @@ namespace :cards do
109
107
display_subtypes : flatten_subtypes ( subtypes , card [ "subtypes" ] ) ,
110
108
attribution : card [ "attribution" ] ,
111
109
)
110
+ if card . key? ( "cost" )
111
+ new_card . cost = ( card [ "cost" ] . nil? ? -1 : card [ "cost" ] )
112
+ end
112
113
113
114
if new_card . card_type_id == 'agenda'
114
115
new_card . advancement_requirement = ( card [ "advancement_requirement" ] . nil? ? -1 : card [ "advancement_requirement" ] )
You can’t perform that action at this time.
0 commit comments