摸鱼游戏:Hundred Days 筑基,兑换码js数据。

最近突然迷上了网页摸鱼游戏,玩了快半年的《猫国建设者》,突然中文版:在线链接 挂掉。

导致一直未重新开局的游戏,没有动力重开一盘。之前的版本数据直接在其他α和β版本无法正常导出和导入,遂放弃。

偶尔间又发现了一款相似的摸鱼游戏——

Hundred Days 筑基》,完全契合了摸鱼的习惯,把玩过程。

发现需要用到大量的鼠标点击,甚至还有“神秘代码”可以兑换。

在这里插入图片描述
加了QQ群和google均无法获取到具体兑换码(这帮装13的鸟人,哈哈哈哈哈),我脑子比较笨。

于是找到作者的源码仓库,在

Arcanum-Hundred-Days/data/achievement.json

里面摸索半天,
只找到达成某项成就需要id:exchange_code_数字的值达到1。
后面借助文心一言,在

Arcanum-Hundred-Days/data/resources.json

里检索到相关的条目,具体内容如下:

{
		"id": "exchange_code_1",
		"desc": "2022兑换码",
		"info": "2022新年快乐,2022个钱币请收下!",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"money": 2022
		}
	},
	{
		"id": "exchange_code_wiki",
		"desc": "打开wiki",
		"info": "感谢你打开本游戏的Wiki百科,目前百科只提供解锁关系,点击Wiki中的The brain标签显示条目解锁内容",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"xiulian_wiki": 1
		}
	},
	{
		"id": "exchange_code_2",
		"desc": "十个零结晶兑换码",
		"info": "十个零结晶!!!",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"zero_crystal": 10
		}
	},
	{
		"id": "exchange_code_3",
		"desc": "时间倒退十年",
		"info": "时间倒退十年,续下命哥们",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"time": -3650
		}
	},
	{
		"id": "exchange_code_4",
		"desc": "获得一块钱(向天再借五百年)",
		"info": "但是我只有一块钱",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"money": 1
		}
	},
	{
		"id": "exchange_code_5",
		"desc": "我不到啊",
		"info": "我不到啊",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"drop":{
			"xwdsnzyd": "100%"
		}
	},
	{
		"id": "exchange_code_6",
		"desc": "我在马路边捡到一块钱",
		"info": "我在马路边捡到一块钱",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 2022,
		"coderesult":{
			"money": 1
		}
	},
	{
		"id": "exchange_code_7",
		"desc": "输入",
		"equneed": "g.ganwu>=300",
		"info": "老实人....",
		"needinfo": "你还不能兑换此兑换码[需要感悟大于300]",
		"useinfo": "兑换码已经被使用或者达到上限",
		"hide": true,
		"name": "code",
		"val":0,
		"max": 1,
		"coderesult":{
			"ganwu.rate": 1
		}

实测"desc":对应的值:“输入”、“我在马路边捡到一块钱”,可以正常使用,供大家参考。
附上,蓝奏云的鼠标自动连续点击程序

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,您可以尝试这个Python程序来实现数字转换成英文句子的功能: def num2eng(num): if num == 0: return "zero" # 定义常量 units = ["", "thousand", "million", "billion"] digits = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] tens = ["", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"] teens = ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"] # 递归函数,将三位数及以下的数字转换成英文句子 def helper(num): if num == 0: return "" elif num < 10: return digits[num] elif num < 20: return teens[num - 10] elif num < 100: return tens[num // 10] + (" " + helper(num % 10) if num % 10 != 0 else "") else: return digits[num // 100] + " hundred" + (" and " + helper(num % 100) if num % 100 != 0 else "") # 将数字分段并转换成英文句子 res = "" for i in range(len(units)): if num % 1000 != 0: res = helper(num % 1000) + " " + units[i] + " " + res num //= 1000 # 去除英文句子中的多余空格,并返回结果 return res.strip() # 测试程序,输出一些样例结果 print(num2eng(22)) # twenty two print(num2eng(100)) # one hundred print(num2eng(145)) # one hundred and forty five print(num2eng(1234)) # one thousand two hundred and thirty four print(num2eng(8088)) # eight thousand eighty eight print(num2eng(486669)) # four hundred and eighty six thousand six hundred and sixty nine print(num2eng(1652510)) # one million six hundred and fifty two thousand five hundred and ten
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值