找回密码
 register
搜索
查看: 170|回复: 0

[游戏攻略] 爆率控制日志说明

[复制链接]
  • 打卡等级:本地老炮
  • 打卡总天数:523
  • 打卡月天数:12
  • 打卡总奖励:521
  • 最近打卡:2026-06-14 09:46:51
Waylee 发表于 2026-1-31 14:43 | 显示全部楼层 |阅读模式 | Google Chrome | Windows 10

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×

爆率控制日志说明:

const char* dropResult = (fAccumulatedProb > fRandom) ? "DROP!" : "MISS";
CacheLog(34, "[Drop] BoxID=%d Prob=%.2f%% Roll=%.2f%% Control=%.0f%% => %s",pDropBox[0], fAccumulatedProb * 100.0, fRandom * 100.0, fControlValue * 100.0, dropResult);
参数 变量 含义
%d pDropBox[0] 掉落箱配置ID
%.2f%% fAccumulatedProb * 100.0 最终掉落概率(保留2位小数)
%.2f%% fRandom * 100.0 本次随机数(保留2位小数)
%.0f%% fControlValue * 100.0 个人爆率系数(不保留小数)
%s dropResult 结果:"DROP!" 或 "MISS"

判定逻辑:Prob > Roll 则掉落


Prob = Probability = 掉落概率(掉落几率)
Roll = 随机掷骰子的结果(系统随机数)

您需要登录后才可以回帖 登录 | register

本版积分规则

QQ|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )|天天打卡

GMT+8, 2026-6-14 19:30 , Processed in 0.053265 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表