예제 #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));
 }