Remove circular backgrounds from graded tool artwork #69
38
.forgejo/workflows/graded-tool-art.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: Graded Tool Art Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ['fix/graded-tool-halo-*']
|
||||
|
||||
jobs:
|
||||
graded-tool-art:
|
||||
runs-on: dune-ci
|
||||
steps:
|
||||
- name: Check out exact revision
|
||||
shell: bash
|
||||
env:
|
||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git init .
|
||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Assemble both deployed pack variants
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir graded-tool-art
|
||||
base=$(PYTHONPATH=tools python3 -c 'from plugin_graded_tool_art import BASE_SOURCE; print(BASE_SOURCE)')
|
||||
for variant in arrakis fleet; do
|
||||
curl --fail --location --retry 2 "https://www.dunerealms.com/downloads/DuneRealms-Wild-$base-$variant.zip" -o "$variant.zip"
|
||||
python3 tools/plugin_graded_tool_art.py "$variant" "$variant.zip" network/resource-pack/central/overlay network/resource-pack/dune-items/publication-pins.json "graded-tool-art/DuneRealms-Wild-$GITHUB_SHA-$variant.zip" > "graded-tool-art/$variant.json"
|
||||
done
|
||||
printf '%s\n' "$GITHUB_SHA" > graded-tool-art/SOURCE_COMMIT
|
||||
cp tools/{plugin_graded_tool_art,plugin_supplied_item_art,plugin_wild_update}.py graded-tool-art/
|
||||
(cd graded-tool-art && sha256sum -- * > SHA256SUMS)
|
||||
- name: Upload both checked packs
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DuneRealms-Graded-Tool-Art
|
||||
path: graded-tool-art
|
||||
if-no-files-found: error
|
||||
|
|
@ -91,7 +91,6 @@ def socket(cv, t, tier, u, half=4.4, length=4):
|
|||
|
||||
def draw_tool(kind, tier, pip_count):
|
||||
cv = Cv(64)
|
||||
aura(cv, tier)
|
||||
t = Axis("nw", k=.66, origin=(34, 34), u0=14) if kind in ("bow", "crossbow") else Axis("ne")
|
||||
q = QUAL[tier]
|
||||
if kind == "sword":
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 3.8 KiB |

Staff