• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision8f8bfa42d424b2ab21689d72420baecc29b2baba (tree)
Time2019-07-01 00:13:58
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38997 count_mutations() に player_type * 引数を追加.

Change Summary

Incremental Difference

--- a/src/mutation.c
+++ b/src/mutation.c
@@ -2038,11 +2038,11 @@ void do_cmd_knowledge_mutations(player_type *creature_ptr)
20382038 * @brief 現在プレイヤー得ている突然変異の数を返す。
20392039 * @return 現在得ている突然変異の数
20402040 */
2041-static int count_mutations(void)
2041+static int count_mutations(player_type *creature_ptr)
20422042 {
2043- return (count_bits(p_ptr->muta1) +
2044- count_bits(p_ptr->muta2) +
2045- count_bits(p_ptr->muta3));
2043+ return (count_bits(creature_ptr->muta1) +
2044+ count_bits(creature_ptr->muta2) +
2045+ count_bits(creature_ptr->muta3));
20462046 }
20472047
20482048
@@ -2055,7 +2055,7 @@ int calc_mutant_regenerate_mod(player_type *creature_ptr)
20552055 {
20562056 int regen;
20572057 int mod = 10;
2058- int count = count_mutations();
2058+ int count = count_mutations(creature_ptr);
20592059
20602060 /*
20612061 * Beastman get 10 "free" mutations and
Show on old repository browser