OSDN Git Service

[Refactor] 誰得の巻物で生成されるアイテム選択に ProbabilityTable クラスを使う
authorHabu <habu1010+github@gmail.com>
Wed, 14 Sep 2022 14:07:16 +0000 (23:07 +0900)
committerHabu <habu1010+github@gmail.com>
Wed, 14 Sep 2022 14:07:16 +0000 (23:07 +0900)
commitf140a67b97524199f885062c785ee6e11cb7fd4d
tree7cdc27c4ed03448b4991aaa1712c648d5a5371ab
parent30aa7a0f0074b8291055d0b211c223da29cd56ad
[Refactor] 誰得の巻物で生成されるアイテム選択に ProbabilityTable クラスを使う

項目毎の選択確率に重み付けのあるランダム選択処理は ProbabilityTable クラスの機能その
ものなのでこれを使用して可読性を上げる。
また、amuse_info テーブルをコンパイル時定数にする。
src/spell/spells-object.cpp