代码拉取完成,页面将自动刷新
同步操作将从 LookOutTheBush/PUBG 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
from contants import c_contants
class c_wepone():
def __init__(self, name = 'none', mirror = '', muzzle = '', grip = '', butt = ''):
'''
:param name: 武器名称
:param mirror: 倍镜
:param muzzle: 枪口
:param grip: 握把
:param butt: 枪托
'''
self.name = name
self.maxBullets = 0 #子弹最大数量
self.model = 'auto'
self.speed = 0 # 每发射击间隔
self.basic = [] # 压强幅度
self.posture_states = []
self.parts = [mirror, muzzle, grip, butt] # 配件列表
self.k = 1.0 # 配件压枪系数,最后结果由各部分配件累乘得到
self.interval = 0 # 每发射击间隔
self.hold = 1.33
if name != "none" and name != '':
try:
gun_data = c_contants.guns[name]
self.maxBullets = gun_data['maxBullets']
self.model = gun_data['model']
self.speed = gun_data['speed']
self.basic = gun_data['basic']
self.posture_states.append(gun_data['posture']['default'])
self.posture_states.append(gun_data['posture']['squat'])
self.posture_states.append(gun_data['posture']['down'])
self.hold = gun_data['hold']
if mirror!= 'none' and mirror != '':
self.k *= gun_data['mirror'][mirror]
if muzzle != 'none' and muzzle != '':
self.k *= gun_data['muzzle'][muzzle]
if grip != 'none' and grip != '':
self.k *= gun_data['grip'][grip]
if 'butt' in gun_data.keys() and butt in gun_data['butt'].keys() and butt != 'none' and muzzle != '':
self.k *= gun_data['butt'][butt]
except Exception as e:
print(type(e), '::', e)
else:
pass
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。