aburi6800 / Python-OnyxOfBlack

A retro 3D dungeon role-playing game made in Python.
11 stars 2 forks source link

[Bug]アイテムを落とさない敵も落とすことがある #122

Closed aburi6800 closed 3 years ago

aburi6800 commented 3 years ago

hasItemプロパティの判定が抜けている。

aburi6800 commented 3 years ago

character.py: EnemyPartyクラスにhasItem属性を追加。generateメソッドにて、メンバリストの戦闘のhasItemの値を設定する。

stateBattle.py: update_judge_getitemメソッドで、enemyPartyのhasItemがTrueの時のみアイテムを落とすように修正。 また、確率を1/32に変更。

aburi6800 commented 3 years ago

character.py: CharacterクラスにhasItem属性を追加。(初期値はFalse) Monsterクラスのitem属性を削除。

aburi6800 commented 3 years ago

monster.py: hasItem属性を追加して再生成。