Esempio n. 1
0
    public void swapClans(Clan newClan)
    {
        // Update both clan rosters
        // TODO: Friendships should be updated based on this move...
        clan.rosterRemove(this);
        newClan.rosterAdd(this);

        // Do a notification.
        //Debug.Log (name+"("+role+") has left "+clan.name+" for "+newClan.name+".");

        // Update clan reference and be happy about it!
        clan = newClan;
        happy += 0.3f;
        if(happy > 1f) happy = 1f;
    }