コード例 #1
0
    public static void test_adding_two_followers(GameObject pc, GameObject npc)
    {
        if (((GetGlobalVar(450) & 0x4000) == 0) && ((GetGlobalVar(450) & (1)) == 0))
        {
            pc.AddFollower(npc);
            if (!pc.HasMaxFollowers())
            {
                pc.RemoveFollower(npc);
                ScriptDaemon.npc_set(npc, 1);
            }
            else
            {
                pc.RemoveFollower(npc);
                ScriptDaemon.npc_unset(npc, 1);
            }
        }
        else
        {
            if (GameSystems.Party.NPCFollowersSize <= 1) // original condition - only have 1 NPC (Otis, presumeably) (or less, just in case...)
            {
                ScriptDaemon.npc_set(npc, 1);
            }
            else
            {
                ScriptDaemon.npc_unset(npc, 1);
            }
        }

        return;
    }