SlothStyle

joined 2 years ago
[–] [email protected] 2 points 2 years ago

I've been playing the play tests when they have them. This game is so much fun. I love that I can play it 24/7 now

[–] [email protected] 1 points 2 years ago

That sounds kind of like putting business logic in your data layer. I generally try to avoid that but you could do something like

SELECT ( :Doodads_amt * case when id=:doodad_id then price else 0 end ) + (:whatzits_amt * case when id=:whitzits_id then price else 0 end ) from components where component id in (:doodad_id, :whatzits_id);

That's probably not exactly it but you can work with the case statements to filter the data you need. I can't remember off the top of my head what you want in your else statement

The words with a colon at the front are bind variables.

What might be easier is to just query for the price of each item then multiply that price by an amount in your API.

Let me know if you have questions.

[–] [email protected] 4 points 2 years ago

It's so hard to find decent Android games. Would love somewhere that discusses good ones

 

The team is painful to watch. Pitching is not good and we knew that going into the season. That could have been offset by amazing bats but the hitting is usually 2 guys get hits and the rest of the team does nothing for a game.

Do we need a new hitting coach? Or just an all around cleaning up? It's obvious we need better starters but Mo doesn't want to get any. This season is terrible. I am sad.