lapsang-boys / Crimson-Chronicles

A self-proclaimed paradigm shifting tower defense map in Warcraft 3
4 stars 0 forks source link

Add tuple types to MobDefinition for self-documenting code #32

Closed karlek closed 6 years ago

karlek commented 6 years ago
// This would change this:
new MobDefinition(ID_MOB_STAG, "Stag", Units.blackStagMale, "", 1, 1, 20, 0, 250, 1, 1.)
// to this:
new MobDefinition(ID_MOB_STAG, "Stag", Units.blackStagMale, soundset(""), bounty(1), lifeTaken(1), maxhp(20), hpReg(0), ms(250), armor(1), scaling(1.))
godbit commented 6 years ago

Yeah i like that. Much easier when creating and editing mobs!