MCPcopy Create free account
hub / github.com/chavyleung/scripts / autoGetGameItem

Function autoGetGameItem

zsfc/zsfc.js:353–366  ·  view source on GitHub ↗

* @description 掌飞购物相关函数,获取当前月份对应的游戏道具。 * @returns {string} 返回当前月份对应的游戏道具名称。

()

Source from the content-addressed store, hash-verified

351 * @returns {string} 返回当前月份对应的游戏道具名称。
352 */
353function autoGetGameItem() {
354 // 定义游戏道具的列表,包括普通改装道具和进阶改装道具
355 const gameItems = [
356 "进气系统+1", "点火装置+1", "引擎装置+1", // 普通改装道具, 燃料系统已经改29了, 不要买了
357 // "进气系统+1", "燃料系统+1", "点火装置+1", "引擎装置+1", // 普通改装道具
358 // "普通粒子推进", "普通阿尔法离合" // 进阶改装道具,我不需要,注释掉了
359 ];
360
361 // 计算当前月份对应的游戏道具的索引
362 const index = new Date().getMonth() % gameItems.length;
363
364 // 返回当前月份对应的游戏道具名称
365 return gameItems[index];
366}
367
368/**
369 * @description 掌飞购物相关函数,获取商店物品信息。

Callers 1

zsfc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected