Esempio n. 1
0
    /// <summary>
    /// Returns captureTool for the specified ActorHQ, null if not present
    /// </summary>
    /// <param name="actorHQ"></param>
    /// <returns></returns>
    public CaptureTool GetCaptureTool(ActorHQ actorHQ)
    {
        CaptureTool tool = null;

        switch (actorHQ)
        {
        case ActorHQ.Boss: tool = innocence_0; break;

        case ActorHQ.SubBoss1: tool = innocence_1; break;

        case ActorHQ.SubBoss2: tool = innocence_2; break;

        case ActorHQ.SubBoss3: tool = innocence_3; break;

        default: Debug.LogWarningFormat("Unrecognised actorHQ \"{0}\"", actorHQ); break;
        }
        return(tool);
    }
    /*/// <summary>  -> EDIT fixed cost of 1 black mark per investigation
     * /// increment black marks given per investigation by +1 (happens each time a guilty verdict is reached)
     * /// </summary>
     * public void IncrementInvestigationBlackmarks()
     * { investigationBlackmarks++; }*/



    /*/// <summary>
     * /// returns official HQ title (string, eg. 'Treasurer') for specified enum and Playerside. Returns 'Unknown' if a problem
     * /// </summary>
     * /// <param name="hqPosition"></param>
     * /// <returns></returns>
     * public string GetHqTitle(ActorHQ hqPosition)
     * {
     *  string title = "Unknown";
     *  GlobalSide playerSide = GameManager.instance.sideScript.PlayerSide;
     *  switch (playerSide.level)
     *  {
     *      case 1:
     *          //authority
     *          switch (hqPosition)
     *          {
     *              case ActorHQ.Boss: title = campaign.bossAut.tag; break;
     *              case ActorHQ.SubBoss1: title = campaign.subBoss1Aut.tag; break;
     *              case ActorHQ.SubBoss2: title = campaign.subBoss2Aut.tag; break;
     *              case ActorHQ.SubBoss3: title = campaign.subBoss3Aut.tag; break;
     *              case ActorHQ.Worker: title = "Worker"; break;
     *              default: Debug.LogWarningFormat("Unrecognised Authority hqPosition \"{0}\"", hqPosition); break;
     *          }
     *          break;
     *      case 2:
     *          //resistance
     *          switch (hqPosition)
     *          {
     *              case ActorHQ.Boss: title = campaign.bossRes.tag; break;
     *              case ActorHQ.SubBoss1: title = campaign.subBoss1Res.tag; break;
     *              case ActorHQ.SubBoss2: title = campaign.subBoss2Res.tag; break;
     *              case ActorHQ.SubBoss3: title = campaign.subBoss3Res.tag; break;
     *              case ActorHQ.Worker: title = "Worker"; break;
     *              default: Debug.LogWarningFormat("Unrecognised Resistance hqPosition \"{0}\"", hqPosition); break;
     *          }
     *          break;
     *      default: Debug.LogWarningFormat("Unrecognised playerSide.level {0}", playerSide.level); break;
     *  }
     *  return title;
     * }*/

    /// <summary>
    /// returns special gear related to specific HQ hierarchy actor. Returns null if not found
    /// </summary>
    /// <param name="actorHQ"></param>
    /// <returns></returns>
    public Gear GetHqSpecialGear(ActorHQ actorHQ)
    {
        Gear gear = null;

        switch (actorHQ)
        {
        case ActorHQ.Boss: gear = campaign.specialBossGear; break;

        case ActorHQ.SubBoss1: gear = campaign.specialSubBoss1Gear; break;

        case ActorHQ.SubBoss2: gear = campaign.specialSubBoss2Gear; break;

        case ActorHQ.SubBoss3: gear = campaign.specialSubBoss3Gear; break;

        default: Debug.LogWarningFormat("Unrecognised actorHQ \"{0}\"", actorHQ); break;
        }
        return(gear);
    }