jonesguy14 / footballcoach

Android App for playing/simulating/recruiting as a college football coach
Other
34 stars 8 forks source link

Added another new blessed team story ("sports enhancement drinks"). #57

Closed destilla closed 8 years ago

destilla commented 8 years ago

Also added a mechanism to allow for stories to be expanded upon in the middle of the season. In this case, a random week between 5 and 9 is chosen to have a news story posted to it, following up on the launch of the new drink. Depending on the poll position of the team, the story is different.

The story is posted using playWeek() and, as an example, if the story is meant for the Week 8 news, it's posted to week 8 after the games have been played for Week 7 (functionally the only difference to the user is that before week 8's games, this will be the only news story. As soon as the story is posted, the week is advanced by 1)

Examples of the week 0 story and two of the possible midseason outcomes:

image

If the team is still bottom 10:

image

If they manage to crack the top 20:

image

destilla commented 8 years ago

The language/wording may be a bit funky, I wasn't in a huge writing groove today, but there's at least something to work with. I'm going to get around to finishing up adding stories as I get time.

Also, wow, teams rarely break out of the bottom 10 when they've been blessed. Austin just had a really lucky year.

Edit: They finished 9-5 BL that year, next year went 2-10. Year after that, 8-5 BL. Weird.

jonesguy14 commented 8 years ago

Love this, updating stories for the middle of the season will be pretty cool. Nice addition!

destilla commented 8 years ago

Thanks! I end up typing these things out really slowly because I either get too ambitious or put too much text into them and end up doing more than I should, haha. Eventually going to get a bunch cranked out though.

As an architectural opinion/idea: Does it make more sense/is it a best practice idea to throw these into a string array within strings.xml and reference the item I want posted, or is it fine to just keep adding news stories to the .java file?

jonesguy14 commented 8 years ago

I think its fine like it is in the League.java file, maybe eventually if we have enough they could be in a separate newsStories.txt file or in the strings.xml file like you said. I guess inserting the correct team names inside the string would be more annoying though... So yeah right now its all good.

destilla commented 8 years ago

Right on, I'll stick with strings in the code. Just wasn't sure if this is like, a best practice issue or not. Thanks!