Skip to content

Commit

Permalink
Log more finks
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJosh9000 committed Jul 30, 2017
1 parent 46a2658 commit fe2abf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/makedeck.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func CreateDeck(ct *load.Cards, ppl []*load.Person) game.Deck {
// Make cards for traits (but only that match someone).
acs := make([]*game.ActionCard, 0, len(traits))
id := 0
lec, dcc := 0, 0
for _, t := range traits {
if t.PeopleMatching < 1 {
continue
Expand All @@ -124,6 +125,9 @@ func CreateDeck(ct *load.Cards, ppl []*load.Person) game.Deck {
card.ID = id
id++
acs = append(acs, card)
dcc += 2
} else {
lec++
}
}

Expand All @@ -132,7 +136,7 @@ func CreateDeck(ct *load.Cards, ppl []*load.Person) game.Deck {
t.PeopleMatching /= float64(len(pcs))
}

log.Printf("Generated %d people cards and %d action cards", len(pcs), len(acs))
log.Printf("Generated %d people cards and %d action cards (%d life events, %d deaths)", len(pcs), len(acs), lec, dcc)
return &game.Hand{
People: pcs,
Actions: acs,
Expand Down

0 comments on commit fe2abf3

Please sign in to comment.