hw1-5 / C-Hero-Calc

PvE Solver for Cosmos Quest
4 stars 2 forks source link

Hero breaks calculator #8

Open robgw84 opened 6 years ago

robgw84 commented 6 years ago

I've noticed that the hero Dicemaster breaks the calculator, every time he comes up in Daily Quest it kills it. I have to put in heroes that I think will beat it, fight it, then run the calculator again after he is not in the lineup anymore.

Vitae666 commented 6 years ago

Is Dicemaster a hero newer than the last time the Calc was updated (over 2mths ago)?

robgw84 commented 6 years ago

Not really sure, they are a common hero in between Flynn and Luxurious Maximus in the list of heroes. This is him http://cosmos-quest.wikia.com/wiki/Hero_statistic/Dicemaster

He hasn't come up in any Daily Quests or Dungeons before, so I assume he is new but I dont know. But I do know that it is him causing it because he has popped up at least 2-3 times and each time it crashes. If I try and load the UI again it tells me "Unknown Unit" and wont show any of the units from the Daily Quest

Vitae666 commented 6 years ago

Looks like there were 3 new heroes added for v3.0.3.0 (Jul 1, 2018)

Introduced a new Common, Rare & Legendary hero to the Auction House. These heroes can only be obtained by winning the relevant Auction. Once an Auction has been won, they can be leveled with Prana.

Dicemaster - Common - Water - Gains 0-20 attack and health at the start of the battle. Luxurius Maximus - Rare - Attacks a random enemy with each attack. Pokerface - Legendary - Has a chance to deal triple damage.

robgw84 commented 6 years ago

Ahh I see, I have no idea where to see information other than the usual place that Kongregate games mention updates which would be to the side of the game. But that didnt change since March.

Vitae666 commented 6 years ago

https://cosmos-quest.wikia.com/wiki/Updates or https://www.kongregate.com/forums/910715-cosmos-quest/topics/1662884-patch-notes-3-0-3?page=1

would be a start ;-)

robgw84 commented 6 years ago

Good to know.

Vitae666 commented 6 years ago

I'd love to be able to create my own fork of this but damned if I understand what most of the code for the heroes means.

Berserk, Champion, Buff, Training, Rainbow, etc. Much less the #'s at the very end of things

baseHeroes.push_back(Monster( 75, 2, "geum", EARTH, LEGENDARY, {BERSERK, SELF, EARTH, 2})); baseHeroes.push_back(Monster( 46, 46, "geror", AIR, LEGENDARY, {FRIENDS, SELF, AIR, 1.2f})); baseHeroes.push_back(Monster( 72, 28, "thert", EARTH, LEGENDARY, {PROTECT_L, EARTH, EARTH, 0.112f}));

Hell makes one a 2 and another 1.2f or a 0.112f? Can't figure out where to even look in the code to try and figure it out.

robgw84 commented 6 years ago

The numbers are the base attack and health of the heroes at level 1. Checked the hero listing on the Wiki and Geum has 2 attack and 75 health. Berserk is the skill it has, Self is the Target of it, Earth is the element of the ability and the 2 is the effect of it. Using Geum as the example, Berserk means it multiplies the attack of Geum by 2

The 0.112 is because Thert gives 1 armor for every 9 levels, 0.112 x 9 = 1

Vitae666 commented 6 years ago

Ah. Got it. Well, either way, I'd have to let someone far smarter than me figure out what these 3 new heroes would need to be coded as. Part of it is basically obvious, but the part after the rarity would be the harder part. At least I think so :) Technically, as a bandaid could just not make them all weird with the abilities and just make it generic like some other heroes. Heck do I know tho.

EDIT: Ok, so I'm thinking that Dicemaster would be a type of GROW but given that it's random, that makes it harder. And heck, the others....I don't see other heroes that have anything that corresponds even slightly to them. Like I said, someone far smarter than me would have to deal with these new heroes :)

robgw84 commented 6 years ago

Unfortunately I don't think the abilities for the new heroes even fit the ability types that are already in the program. The closest type for Dicemaster would be a GROW type, but it doesn't increase by level. Maybe BUFF, but it increases all stats not just attack.

Those abilities are too different to the rest for me to try adding into the code myself...