mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
844d518684
- Add a script to generate achievement data from Steamworks API - Add achievements page with a link in sidebar - Calculate achievements (1/min) with an engine counter - Store achievements with a timestamp on unlocked in the PlayerObject - Add a script to generate monochrome icons from Steam icons - Add toast when unlocking an achievement
16 lines
502 B
Bash
16 lines
502 B
Bash
#!/bin/bash
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
ROOTDIR=$BASEDIR/../../..
|
|
echo $ROOTDIR
|
|
rm -rf $ROOTDIR/dist/icons/achievements
|
|
mkdir -p $ROOTDIR/dist/icons
|
|
cp -r $BASEDIR/real $ROOTDIR/dist/icons/achievements
|
|
for i in $ROOTDIR/dist/icons/achievements/*.svg; do
|
|
echo $i
|
|
# Make background transparent and replace green with black
|
|
# The icons will be recolored by css filters matching the player's theme
|
|
sed -i "s/fill:#000000;/fill-opacity: 0%;/g" "$i"
|
|
sed -i "s/fill:#00ff00;/fill:#000000;/g" "$i"
|
|
done
|