Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s-json into main
  • Loading branch information
distributive committed Mar 2, 2024
2 parents c0cdc88 + 3f4a21d commit 0a0eb87
Show file tree
Hide file tree
Showing 1,457 changed files with 14,603 additions and 2,972 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ name: CI
# This action works with pull requests and pushes
on:
pull_request:
branches:
- main
push:
branches:
- main

env:
# We do not need Husky hooks installed for this workflow.
HUSKY: 0
IMAGENAME: registry.digitalocean.com/nsgcr/netrunner-cards-json

jobs:
format_and_lint_and_test:
Expand All @@ -32,3 +35,37 @@ jobs:

- name: Test
run: npm run test

build_and_push:
name: Build docker image
needs: [format_and_lint_and_test]
runs-on: ubuntu-latest
steps:

- name: Checkout the repo
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build image
run: docker build -t $IMAGENAME:latest .

- name: Install doctl
if: github.ref == 'refs/heads/main'
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Log in to DO Container Registry
if: github.ref == 'refs/heads/main'
run: doctl registry login --expiry-seconds 600

- name: Tag image with run id
if: github.ref == 'refs/heads/main'
run:
docker tag $IMAGENAME:latest $IMAGENAME:${{ github.run_id }}

- name: Push image to DO Container Registry
if: github.ref == 'refs/heads/main'
run: docker push $IMAGENAME:${{ github.run_id }} && docker push $IMAGENAME:latest
17 changes: 0 additions & 17 deletions v2/cards/arissana_rocha_nahu.json

This file was deleted.

2 changes: 1 addition & 1 deletion v2/cards/nyusha_sable_sintashta_symphonic_prodigy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"base_link": 0,
"card_type_id": "runner_identity",
"deck_limit": 1,
"designed_by": "null_signal_games",
"faction_id": "criminal",
"id": "nyusha_sable_sintashta_symphonic_prodigy",
"influence_limit": 15,
"is_unique": false,
"memory_cost": 4,
"minimum_deck_size": 45,
"pronouns": "she/her",
"side_id": "runner",
Expand Down
1 change: 1 addition & 0 deletions v2/cards/o_shortage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "operation",
"cost": 3,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "haas_bioroid",
"id": "o_shortage",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/oaktown_grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "upgrade",
"cost": 1,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "haas_bioroid",
"id": "oaktown_grid",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/oaktown_renovation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"agenda_points": 2,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "oaktown_renovation",
"is_unique": false,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/ob_superheavy_logistics_extract_export_excel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"card_type_id": "corp_identity",
"deck_limit": 1,
"designed_by": "null_signal_games",
"faction_id": "weyland_consortium",
"id": "ob_superheavy_logistics_extract_export_excel",
"influence_limit": 15,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/obelus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "hardware",
"cost": 4,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "anarch",
"id": "obelus",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/oberth_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "upgrade",
"cost": 2,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "oberth_protocol",
"influence_cost": 4,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/obokata_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"agenda_points": 3,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "jinteki",
"id": "obokata_protocol",
"is_unique": false,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/observe_and_destroy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "operation",
"cost": 0,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "nbn",
"id": "observe_and_destroy",
"influence_cost": 1,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/odore.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "program",
"cost": 4,
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "anarch",
"id": "odore",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/oduduwa.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "ice",
"cost": 7,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "oduduwa",
"influence_cost": 5,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/off_campus_apartment.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "resource",
"cost": 0,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "anarch",
"id": "off_campus_apartment",
"influence_cost": 1,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/off_the_grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "upgrade",
"cost": 6,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "off_the_grid",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/office_supplies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "event",
"cost": 4,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "sunny_lebeau",
"id": "office_supplies",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/officer_frank.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "resource",
"cost": 0,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "neutral_runner",
"id": "officer_frank",
"influence_cost": 0,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/offworld_office.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"agenda_points": 2,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "neutral_corp",
"id": "offworld_office",
"influence_cost": 0,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/old_hollywood_grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "upgrade",
"cost": 5,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "nbn",
"id": "old_hollywood_grid",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/omar_keung_conspiracy_theorist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"base_link": 0,
"card_type_id": "runner_identity",
"deck_limit": 1,
"designed_by": "fantasy_flight_games",
"faction_id": "anarch",
"id": "omar_keung_conspiracy_theorist",
"influence_limit": 12,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/omega.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "program",
"cost": 7,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "shaper",
"id": "omega",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/omni_drive.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "hardware",
"cost": 3,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "shaper",
"id": "omni_drive",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/on_the_lam.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "event",
"cost": 3,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "criminal",
"id": "on_the_lam",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/ontological_dependence.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"agenda_points": 2,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "haas_bioroid",
"id": "ontological_dependence",
"is_unique": false,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/open_forum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "asset",
"cost": 1,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "open_forum",
"influence_cost": 1,
Expand Down
16 changes: 16 additions & 0 deletions v2/cards/oppo_research.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"card_type_id": "operation",
"cost": 2,
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "nbn",
"id": "oppo_research",
"influence_cost": 2,
"is_unique": false,
"side_id": "corp",
"stripped_text": "Play only if the Runner stole or trashed a Corp card during their last turn. After you resolve this operation, your action phase ends. Give the Runner 2 tags. Threat 3 -> You may pay 5 credits to give the Runner 2 tags. (This ability is active if any player has 3 or more agenda points.)",
"stripped_title": "Oppo Research",
"subtypes": ["terminal", "gray_ops"],
"text": "Play only if the Runner stole or trashed a Corp card during their last turn.\nAfter you resolve this operation, your action phase ends.\nGive the Runner 2 tags.\nThreat 3 → You may pay 5[credit] to give the Runner 2 tags. <em>(This ability is active if any player has 3 or more agenda points.)</em>",
"title": "Oppo Research"
}
1 change: 1 addition & 0 deletions v2/cards/oracle_may.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "resource",
"cost": 1,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "neutral_runner",
"id": "oracle_may",
"influence_cost": 1,
Expand Down
16 changes: 16 additions & 0 deletions v2/cards/oracle_thinktank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"advancement_requirement": 3,
"agenda_points": 1,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "nbn",
"id": "oracle_thinktank",
"is_unique": false,
"side_id": "corp",
"stripped_text": "When the Runner steals this agenda, give them 1 tag. click, remove 1 tag: Shuffle this agenda into R&D. The Corp can use this ability only if this agenda is in the Runner's score area.",
"stripped_title": "Oracle Thinktank",
"subtypes": ["research"],
"text": "When the Runner steals this agenda, give them 1 tag.\n[click], <strong>remove 1 tag:</strong> Shuffle this agenda into R&D. The Corp can use this ability only if this agenda is in the Runner's score area.",
"title": "Oracle Thinktank"
}
1 change: 1 addition & 0 deletions v2/cards/orbital_superiority.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"agenda_points": 2,
"card_type_id": "agenda",
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "neutral_corp",
"id": "orbital_superiority",
"influence_cost": 0,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/orca.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "program",
"cost": 10,
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "shaper",
"id": "orca",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/order_of_sol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "resource",
"cost": 2,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "shaper",
"id": "order_of_sol",
"influence_cost": 1,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/origami.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "program",
"cost": 0,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "anarch",
"id": "origami",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/orion.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "ice",
"cost": 15,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "orion",
"influence_cost": 3,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/otoroshi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "ice",
"cost": 2,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "jinteki",
"id": "otoroshi",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/out_of_the_ashes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "event",
"cost": 1,
"deck_limit": 6,
"designed_by": "fantasy_flight_games",
"faction_id": "shaper",
"id": "out_of_the_ashes",
"influence_cost": 2,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/overclock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "event",
"cost": 1,
"deck_limit": 3,
"designed_by": "null_signal_games",
"faction_id": "neutral_runner",
"id": "overclock",
"influence_cost": 0,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/overmind.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "program",
"cost": 4,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "neutral_runner",
"id": "overmind",
"influence_cost": 0,
Expand Down
1 change: 1 addition & 0 deletions v2/cards/overseer_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"card_type_id": "upgrade",
"cost": 1,
"deck_limit": 3,
"designed_by": "fantasy_flight_games",
"faction_id": "weyland_consortium",
"id": "overseer_matrix",
"influence_cost": 4,
Expand Down
Loading

0 comments on commit 0a0eb87

Please sign in to comment.