Author Topic: Team bonus (database/variable)  (Read 429 times)

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Team bonus (database/variable)
« on: June 22, 2011, 07:42:38 AM »
Players are a team. Each team has a limited number of offices. Players can have offices, but no more that 1 of each kind. The leader of the team can change the office ownership anytime.

There is player table and office table.

Now let's say there is an office that grants +10% to woodcutting action (that action is instant and require no time). How to make it so players do not "pass around" the office so all of them in the team get the bonus?

Another case, there is an office that grant 3x free something per day (each team has 5 of such offices). Where to store the "uses" variable? If it is in the player table then they again can pass around the office and all of them benefit, if it is in the office table then one player can switch offices after use and get 3x5 free actions (instead of the 3 max that he was supposed to) at the expense of other team members.

I want to retain the "leader can change offices anytime" rule if possible.

Offline Barrikor

  • Level 21
  • *
  • Posts: 248
  • Reputation: +3/-0
    • View Profile
Re: Team bonus (database/variable)
« Reply #1 on: June 22, 2011, 08:23:01 PM »
Maybe keep the offices changeable anytime, but make the players not get a bonus on first day that they have the office.
Projects: Pith Framework (at 0.5), CactusGUI (at 0.3)

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: Team bonus (database/variable)
« Reply #2 on: June 23, 2011, 05:43:16 AM »
Maybe keep the offices changeable anytime, but make the players not get a bonus on first day that they have the office.
Yes... This seems like a good solution.

REP+1 (I feel everyone who can invent a very good solution that require 1 sentence to explain deserves this :))

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal