Skip to content

possible fix script for bug for demanding tribute from guardian entities #5178

@ab9rf

Description

@ab9rf

Per Putnam, "latest beta has a known crash when demanding tribute from guardian entities (i.e. mythical sites)" and provides the following script

function get_first_civilized_its_probably_dwarf()
  for k,v in ipairs(df.global.world.raws.creatures.all) do
    if v.OCCURS_AS_ENTITY_RACE then return k end
  end
end

local r=get_first_civilized_its_probably_dwarf()

for k,v in ipairs(df.global.world.entities.all) do
  if v.race==-1 then v.race=r end
end

We may want to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions