当前位置: 首页>>代码示例>>C#>>正文


C# Candidate.getPerceivedStat方法代码示例

本文整理汇总了C#中Candidate.getPerceivedStat方法的典型用法代码示例。如果您正苦于以下问题:C# Candidate.getPerceivedStat方法的具体用法?C# Candidate.getPerceivedStat怎么用?C# Candidate.getPerceivedStat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Candidate的用法示例。


在下文中一共展示了Candidate.getPerceivedStat方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: generateFervorHobbySkill

    private void generateFervorHobbySkill(Candidate candidate)
    {
        int value = candidate.getPerceivedStat("fervor");
        List<string[]> options = new List<string[]>();
        if (value > 70)
        {
            options.Add(checkSecondaryStat(candidate, "physique", "Dancing", true));
            options.Add(checkSecondaryStat(candidate, "morality", "Pyromania", false));
            options.Add(checkSecondaryStat(candidate, "ambition", "Voodoo", true));
            options.Add(entry("skill", "Chanting"));

        }
        else if (value > 50)
        {
            options.Add(entry("hobby", "Meditation"));
            options.Add(entry("hobby", "Chanting"));
            options.Add(entry("hobby", "Sedative Experimentation"));
        }
        else
        {
            options.Add(entry("skill", "Meditation"));
            options.Add(entry("skill", "Sedative Experimentation"));
            options.Add(checkSecondaryStat(candidate, "ambition", "Sitting Quietly", false));
        }
        addOptionToOutputs(options[Random.Range(0, options.Count)]);
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:26,代码来源:HobbyGenerator.cs

示例2: generatePhysiqueHobbySkill

    private void generatePhysiqueHobbySkill(Candidate candidate)
    {
        int value = candidate.getPerceivedStat("physique");
        List<string[]> options = new List<string[]>();
        if (value > 70)
        {
            options.Add(checkSecondaryStat(candidate, "fervor", "Dancing", true));
            options.Add(checkSecondaryStat(candidate, "morality", "Picking on the weak", false));
            options.Add(entry("skill", "Brawling"));
            options.Add(checkSecondaryStat(candidate, "intelligence", "Familiar Husbandry", true));

        } else if (value > 50)
        {
            options.Add(entry("hobby", "Brawling"));
            options.Add(entry("hobby", "Hunger Striking"));
        } else
        {
            options.Add(checkSecondaryStat(candidate, "ambition", "Lounging", false));
            options.Add(checkSecondaryStat(candidate, "intelligence", "Reality TV Trivia", false));
            options.Add(entry("skill", "Hunger Striking"));
        }
        addOptionToOutputs(options[Random.Range(0, options.Count)]);
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:23,代码来源:HobbyGenerator.cs

示例3: generateAmbitionHobbySkill

    private void generateAmbitionHobbySkill(Candidate candidate)
    {
        int value = candidate.getPerceivedStat("ambition");
        List<string[]> options = new List<string[]>();
        if (value > 70)
        {

            options.Add(checkSecondaryStat(candidate, "intelligence", "Necromancy", true));
            options.Add(checkSecondaryStat(candidate, "morality", "Scheming", false));
            options.Add(checkSecondaryStat(candidate, "intelligence", "Ouija", false));
            options.Add(checkSecondaryStat(candidate, "fervor", "Voodoo", true));
            options.Add(entry("skill", "Puppet Mastery"));
        }
        else if (value > 50)
        {
            options.Add(entry("hobby", "Puppet Mastery"));
            options.Add(entry("hobby", "Masochism"));
        }
        else
        {
            options.Add(checkSecondaryStat(candidate, "physique", "Lounging", false));
            options.Add(checkSecondaryStat(candidate, "fervor", "Sitting Quietly", false));
            options.Add(checkSecondaryStat(candidate, "morality", "Working with children", true));
            options.Add(entry("skill", "Masochism"));
        }
        addOptionToOutputs(options[Random.Range(0, options.Count)]);
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:27,代码来源:HobbyGenerator.cs

示例4: checkSecondaryStat

    private string[] checkSecondaryStat(Candidate candidate, string secondary, string name, bool high)
    {
        bool check;
        string[] item;
        if (high)
            {
                check = (candidate.getPerceivedStat(secondary) > 70);
            } else {
                check = (candidate.getPerceivedStat(secondary) < 50);
         };
        if (check)
        {
            item = new string[] { "skill", name };
        }
        else
        {
            item = new string[] { "hobby", name };
        }

        return item;
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:21,代码来源:HobbyGenerator.cs

示例5: generateIntelligenceHobbySkill

    private void generateIntelligenceHobbySkill(Candidate candidate)
    {
        int value = candidate.getPerceivedStat("intelligence");
        List<string[]> options = new List<string[]>();
        if (value > 70)
        {

            options.Add(checkSecondaryStat(candidate, "ambition", "Necromancy", true));
            options.Add(checkSecondaryStat(candidate, "morality", "Scheming", false));
            options.Add(checkSecondaryStat(candidate, "physique", "Familiar Husbandry", true));
            options.Add(entry("skill", "Tomes"));
        }
        else if (value > 50)
        {
            options.Add(entry("hobby", "Tomes"));
            options.Add(entry("hobby", "Heavy Drinking"));
        }
        else
        {
            options.Add(checkSecondaryStat(candidate, "ambition", "Ouija", true));
            options.Add(checkSecondaryStat(candidate, "physique", "Reality TV Trivia", false));
            options.Add(entry("skill", "Heavy Drinking"));
        }
        addOptionToOutputs(options[Random.Range(0, options.Count)]);
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:25,代码来源:HobbyGenerator.cs

示例6: generateMoralityHobbySkill

    private void generateMoralityHobbySkill(Candidate candidate)
    {
        int value = candidate.getPerceivedStat("morality");
        List<string[]> options = new List<string[]>();
        if (value > 70)
        {

            options.Add(entry("skill", "Healing"));
            options.Add(entry("skill", "Charity Fundraising"));
            options.Add(checkSecondaryStat(candidate, "ambition", "Working with children", false));
        }
        else if (value > 50)
        {
            options.Add(entry("hobby", "Healing"));
            options.Add(entry("hobby", "Lying"));
            options.Add(entry("hobby", "Charity Fundraising"));
        }
        else
        {
            options.Add(checkSecondaryStat(candidate, "intelligence", "Blackmail", true));
            options.Add(checkSecondaryStat(candidate, "ambition", "Scheming", true));
            options.Add(entry("skill", "Lying"));
            options.Add(checkSecondaryStat(candidate, "physique", "Picking on the weak", true));
            options.Add(checkSecondaryStat(candidate, "fervor", "Pyromania", true));
        }
        addOptionToOutputs(options[Random.Range(0, options.Count)]);
    }
开发者ID:Scythus,项目名称:InhumanResources,代码行数:27,代码来源:HobbyGenerator.cs


注:本文中的Candidate.getPerceivedStat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。