Skip to content

Commit

Permalink
feat: better cmdCoc, add display for DB (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyOwO authored Aug 16, 2024
1 parent f4cfafd commit 663d740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice/ext_coc7.go
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ func RegisterBuiltinExtCoc7(self *Dice) {

var ss []string
for i = 0; i < val; i++ {
result := ctx.EvalFString(`力量:{$t1=3d6*5} 敏捷:{$t2=3d6*5} 意志:{$t3=3d6*5}\n体质:{$t4=3d6*5} 外貌:{$t5=3d6*5} 教育:{$t6=(2d6+6)*5}\n体型:{$t7=(2d6+6)*5} 智力:{$t8=(2d6+6)*5}\nHP:{($t4+$t7)/10} 幸运:{$t9=3d6*5} [{$t1+$t2+$t3+$t4+$t5+$t6+$t7+$t8}/{$t1+$t2+$t3+$t4+$t5+$t6+$t7+$t8+$t9}]`, nil)
result := ctx.EvalFString(`力量:{力量=3d6*5} 敏捷:{敏捷=3d6*5} 意志:{意志=3d6*5}\n体质:{体质=3d6*5} 外貌:{外貌=3d6*5} 教育:{教育=(2d6+6)*5}\n体型:{体型=(2d6+6)*5} 智力:{智力=(2d6+6)*5} 幸运:{幸运=3d6*5}\nHP:{(体质+体型)/10} <DB:{(力量 + 体型) < 65 ? -2, (力量 + 体型) < 85 ? -1, (力量 + 体型) < 125 ? 0, (力量 + 体型) < 165 ? '1d4', (力量 + 体型) < 205 ? '1d6'}> [{力量+敏捷+意志+体质+外貌+教育+体型+智力}/{力量+敏捷+意志+体质+外貌+教育+体型+智力+幸运}]`, nil)
if result.vm.Error != nil {
break
}
Expand Down

0 comments on commit 663d740

Please sign in to comment.