コード例 #1
0
    public void OnRead()
    {
        string key = Talk.ChooseRandom(outcomes.Keys.ToArray());

        Stats.singleton.literacy += outcomes[key] + Mathf.Round(Stats.singleton.literacy * 0.1f);
        MessageLog.PushMessage(key);
    }
コード例 #2
0
ファイル: Share.cs プロジェクト: foxor/politics
 public void OnShare()
 {
     Stats.singleton.audience += Mathf.Round(Stats.singleton.literacy / 2f);
     if (Stats.singleton.literacy > 40 && !Stats.singleton.canWrite)
     {
         Stats.singleton.canWrite = true;
         MessageLog.PushMessage("You've been looking for an article describing how the world would be different if puppies were safe from the giant coorperations, but nobody has written it yet!  You suppose it's time to write it yourself.");
     }
     else
     {
         MessageLog.PushMessage("You ran into " + Talk.ChooseRandom(Talk.Names) + " " + Talk.ChooseRandom(Circumstances) + " and you recommended them a book about " + Talk.ChooseRandom(Talk.Topics) + ", " + Talk.ChooseRandom(Outcomes));
     }
 }
コード例 #3
0
    public void OnPicket()
    {
        Stats.singleton.influence += Stats.singleton.audience;
        string outcome = null;

        if (Stats.singleton.InfluencePct < 1f)
        {
            outcome = Talk.ChooseRandom(Outcomes);
        }
        else
        {
            outcome = AchieveMilestone();
        }
        MessageLog.PushMessage("You gather a bunch of people and head to " + Talk.ChooseRandom(CorpNames) + ".  " + outcome + ".");
    }
コード例 #4
0
ファイル: Write.cs プロジェクト: foxor/politics
 public void OnWrite()
 {
     Stats.singleton.audiencePerSecond += 1f;
     Stats.singleton.literacy           = Mathf.Round(Stats.singleton.literacy * 1.4f);
     MessageLog.PushMessage(Talk.ChooseRandom(Descriptions) + "  " + Talk.ChooseRandom(Outcomes));
 }
コード例 #5
0
ファイル: Vote.cs プロジェクト: foxor/politics
 public void OnVote()
 {
     MessageLog.PushMessage(Talk.ChooseRandom(outcomes));
 }