Skip to content

Templates in RESOURCES break carving corpses #1574

@mtwango

Description

@mtwango

If you have NPC with template in resource list for carving, it will stop creating any items after the template (and the template).

Creature:

[CHARDEFc_gold_serpent]
ID=015
NAME=Gold Serpent
SOUND=snd_animal_snake1
ICON=020fc
RESOURCES=1 tpl_ingot, 1 i_raw_ribs, 14 i_scroll_blank

anything after the tpl_ingot won't get created.

The issue is, that in CChar::Use_CarveCorpse there is a check for itemdef:

if (rid.GetResType() != RES_ITEMDEF)
  continue;

which probably should include templates as well, since they are items. And log some infomation to console about invalid resource type when carving

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions