Thanks to visit codestin.com
Credit goes to github.com

Skip to content

カテゴリ指定の素材と製作数に必要なアイテムの判定が間違っている? #7

@kondouraion

Description

@kondouraion

2200行過ぎたあたり

    //カテゴリ指定の素材と製作員数に必要なアイテムを持っているか
    Game_Party.prototype.hasCategoryMaterial = function(material, number) {
-        return material.category() && this.numCategoryItem(material.category()) >= number;
+       return material.category() && this.numCategoryItem(material.category()) >= material.number() * number;

hasNonCategoryMaterialメソッドはmaterial.number() * numberになっているのでおそらくこちら側が間違っているのではと思います

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions