Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Messing With the Source Code  (Read 699 times)

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Messing With the Source Code
« on: October 04, 2009, 03:31:08 am »

Where is the general function which controls what way activities such as activism sway the political spectrum?
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Messing With the Source Code
« Reply #1 on: October 04, 2009, 04:34:07 am »

You would want to look at the code that handles the activities themselves. You should run across code for flavor text, assessing the effectiveness of activities, how impactful they are, and the chance of getting arrested. They're probably in one of the files in the daily folder, if memory serves. They'll make calls to change_public_opinion, but you probably don't want to change the change_public_opinion function unless you want to make absolutely everything in the game have the opposite effect that it does now -- including random news stories.

For site actions, the code that handles their effects is actually in one of the news files, because the effect on public opinion is a result of the newspaper article created based on your actions.
Logged