Skip to content

rimworld 1.6 c# code error #706

@fkwhaqlfkausfktl-ui

Description

@fkwhaqlfkausfktl-ui
public class WorkGiver_Warden_BreakToNorigae : WorkGiver_Warden
{
    public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false)
    {
        Pawn prisoner = t as Pawn;
        if (prisoner == null || !prisoner.IsPrisonerOfColony) return null;

        if (prisoner.guest.interactionMode != DefDatabase<PrisonerInteractionModeDef>.GetNamed("Interaction_BreakToNorigae"))
        return null;

        if (!pawn.CanReserve(prisoner, 1, -1, null, forced)) return null;
        if (prisoner.guest.will > 0) return JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("Job_WardenSexBreak"), prisoner);
        return null;
    }
}

how can I solution.

It's about making the inmate a new slave settler.

'Pawn_GuestTracker' does not contain a definition for 'interactionMode' and does not have an accessible extended method 'interactionMode' that allows the first argument of the type 'Pawn_GuestTracker'. Make sure there is a using instruction or assembly reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    question질문으로 사용될 이슈

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions