OSDN Git Service

[Refactor] switch (randint1(x)) のパターンを rand_choice で書き換え
authorHabu <habu1010+github@gmail.com>
Thu, 18 May 2023 15:15:19 +0000 (00:15 +0900)
committerHabu <habu1010+github@gmail.com>
Thu, 18 May 2023 15:19:22 +0000 (00:19 +0900)
commit43e7b74d3075de9ebd308b9cbc2e7a3de621ede2
treea75d5a0e78627a994d3332fbc9f0f5c1db78971c
parentdb51a20bca7be21f9c558974d00279ad58573959
[Refactor] switch (randint1(x)) のパターンを rand_choice で書き換え

get_random_virtue()の処理に関しては等確率ではないので ProbabilityTable
クラスを使用して書き換え。
12 files changed:
src/artifact/random-art-misc.cpp
src/avatar/avatar.cpp
src/cmd-item/cmd-zapwand.cpp
src/effect/effect-player-resist-hurt.cpp
src/mind/mind-chaos-warrior.cpp
src/monster-attack/monster-attack-describer.cpp
src/object-enchant/object-boost.cpp
src/realm/realm-arcane.cpp
src/spell-kind/earthquake.cpp
src/spell-kind/spells-equipment.cpp
src/term/gameterm.cpp
src/view/display-map.cpp