fix
This commit is contained in:
parent
67f7a24c55
commit
b5931eec30
@ -79,20 +79,29 @@ function create_game_character() {
|
|||||||
repo=$did_yui
|
repo=$did_yui
|
||||||
json="{\"collection\":\"$col\", \"rkey\":\"$rkey\", \"repo\":\"$repo\"}"
|
json="{\"collection\":\"$col\", \"rkey\":\"$rkey\", \"repo\":\"$repo\"}"
|
||||||
if [ $((RANDOM % 2)) -eq 0 ];then
|
if [ $((RANDOM % 2)) -eq 0 ];then
|
||||||
sex=male
|
gender=male
|
||||||
else
|
else
|
||||||
sex=female
|
gender=female
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $name in
|
case $name in
|
||||||
ai)
|
ai)
|
||||||
sex=none;;
|
gender=none
|
||||||
|
group=origin
|
||||||
|
season=0
|
||||||
|
;;
|
||||||
chinese|dragon|cerberus|pegasus)
|
chinese|dragon|cerberus|pegasus)
|
||||||
sex=male;;
|
gender=male
|
||||||
|
group=fantasy
|
||||||
|
season=1
|
||||||
|
;;
|
||||||
kitsune|phoenix|leviathan|kirin|wyvern)
|
kitsune|phoenix|leviathan|kirin|wyvern)
|
||||||
sex=female;;
|
gender=female
|
||||||
|
group=fantasy
|
||||||
|
season=1
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
continue;;
|
continue ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
jj=`curl -sL "$url?repo=$repo&collection=$col&rkey=$rkey"`
|
jj=`curl -sL "$url?repo=$repo&collection=$col&rkey=$rkey"`
|
||||||
@ -119,12 +128,7 @@ function create_game_character() {
|
|||||||
nickname=$name
|
nickname=$name
|
||||||
fullname=$name
|
fullname=$name
|
||||||
uri=at://${did_yui}/$col/$chara
|
uri=at://${did_yui}/$col/$chara
|
||||||
if [ "$name" = "ai" ];then
|
|
||||||
group=origin
|
|
||||||
sex=none
|
|
||||||
else
|
|
||||||
group=fantasy
|
|
||||||
fi
|
|
||||||
|
|
||||||
json="{
|
json="{
|
||||||
\"repo\": \"$handle_yui\",
|
\"repo\": \"$handle_yui\",
|
||||||
@ -136,7 +140,8 @@ json="{
|
|||||||
\"name\": \"$name\",
|
\"name\": \"$name\",
|
||||||
\"fullname\": \"$fullname\",
|
\"fullname\": \"$fullname\",
|
||||||
\"nickname\": \"$nickname\",
|
\"nickname\": \"$nickname\",
|
||||||
\"sex\": \"$sex\",
|
\"gender\": \"$gender\",
|
||||||
|
\"season\": $season,
|
||||||
\"group\": \"$group\",
|
\"group\": \"$group\",
|
||||||
\"embed\": {
|
\"embed\": {
|
||||||
\"\$type\": \"app.bsky.embed.external\",
|
\"\$type\": \"app.bsky.embed.external\",
|
||||||
|
BIN
verse/img/fantasy.png
Normal file
BIN
verse/img/fantasy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 709 KiB |
Loading…
Reference in New Issue
Block a user