some common knowledges Doesn't work

19 votes

When I tried to make a mod, I found mining_efficiency and sharp_axes have no effect
public override BehResult execute(Actor pActor)
{
pActor.beh_building_target.extractResources(pActor, pActor.beh_building_target.stats.resources_given);
pActor.inventory.add(pActor.beh_building_target.stats.resource_id, pActor.beh_building_target.stats.resources_given);
return BehResult.Continue;
}
}
}
pActor.beh_building_target.extractResources(pActor,pActor.beh_building_target.stats.resources_given);
The reason is that the return value of the above code is not received

Need More Info mod related Suggested by: yitiaoyu? Upvoted: 28 Oct, '23 Comments: 1

Comments: 1