Originally Posted by
mefistotelis
Sorry mefistotelis but i don't know how that function works (existent structures, states, etc).
What SDLstJob_ConvImprDungeon mean?
I see it is a value from an enum:
Code:
enum SpecialLastJobKinds {
SDLstJob_None = 0,
SDLstJob_DigOrMine,
SDLstJob_ConvImprDungeon,
SDLstJob_ReinforceWall3,
SDLstJob_UseTraining4,
SDLstJob_Unkn5,
SDLstJob_Unkn6,
SDLstJob_Unkn7,
SDLstJob_Unkn8,
SDLstJob_ReinforceWall9,
};
- Wich is the state that make the imp to claim slabs?
- What's the difference between SDLstJob_ReinforceWall9 and SDLstJob_ReinforceWall3?
- In the function you told me:
Code:
long check_out_available_spdigger_drop_tasks(struct Thing *spdigtng)
{
struct CreatureControl *cctrl;
cctrl = creature_control_get_from_thing(spdigtng);
if ( check_out_unclaimed_unconscious_bodies(spdigtng, 768) )
{
return 1;
}
if ( check_out_unclaimed_dead_bodies(spdigtng, 768) )
{
return 1;
}
if ( check_out_unclaimed_spells(spdigtng, 768) )
{
return 1;
}
if ( check_out_unclaimed_traps(spdigtng, 768) )
{
return 1;
}
if ( check_out_empty_traps(spdigtng, 768) )
{
return 1;
}
if ( check_out_undug_drop_place(spdigtng) )
{
cctrl->digger.last_did_job = SDLstJob_DigOrMine;
return 1;
}
if ( check_out_unconverted_drop_place(spdigtng) )
{
cctrl->digger.last_did_job = SDLstJob_ConvImprDungeon;
return 1;
}
if ( check_out_unprettied_drop_place(spdigtng) )
{
cctrl->digger.last_did_job = SDLstJob_ConvImprDungeon;
return 1;
}
if ( check_out_unclaimed_gold(spdigtng, 768) )
{
return 1;
}
if ( check_out_unreinforced_drop_place(spdigtng) )
{
cctrl->digger.last_did_job = SDLstJob_ReinforceWall9;
return 1;
}
if ( check_out_crates_to_arm_trap_in_room(spdigtng) )
{
return 1;
}
cctrl->digger.last_did_job = SDLstJob_None;
return 0;
}
why the first IFs doesn't make changes over the CreatureControl structure and they only return 1?
Sorry, many questions but i haven't programmed KeeperFX by myself...