Skip to content

Commit

Permalink
Fix satasupe
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Mar 30, 2020
1 parent 7b94f86 commit bf22132
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/diceBot/Satasupe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,12 @@ def getNpcTableResult(counts)
age_type -= 1

agen_text = agen[age_type]
age_num = agen_text.split(/\+/)
age_const, age_dice = agen_text.split(/\+/)

total, = rollDiceAddingUp(age_num[1])
ysold = total + age_num[0].to_i
times, sides = age_dice.split("D").map(&:to_i)

total, = roll(times, sides)
ysold = total + age_const.to_i

lmodValue = lmood[(rand 6)]
lageValue = lage[(rand 3)]
Expand Down

0 comments on commit bf22132

Please sign in to comment.