Example #1
0
func makeAsplode(params map[string]float64) game.Ability {
	var a asplode
	a.id = ability.NextAbilityId()
	a.startRadius = params["startRadius"]
	a.endRadius = params["endRadius"]
	a.durationThinks = int(params["durationThinks"])
	a.dps = params["dps"]
	return &a
}
Example #2
0
func makeSpawnCreeps(params map[string]float64) game.Ability {
	var sc spawnCreeps
	sc.id = ability.NextAbilityId()
	return &sc
}