Talk:Sack of spiders

From CrawlWiki
Revision as of 20:58, 8 June 2016 by Fingolfin (talk | contribs)
Jump to: navigation, search

I found the data used to calculate each insect's chance to appear, but I can't seem to understand the picking algorithm ([1]) so if anyone understands it, feel free to fill in the blanks. If anyone feels lucky, here's the data : static const pop_entry pop_spiders[] = { // Sack of Spiders

 {  0,  13,   40, FALL, MONS_WORKER_ANT },
 {  0,  13,   80, FALL, MONS_SOLDIER_ANT },
 {  6,  19,   80, PEAK, MONS_REDBACK},
 {  8,  27,   90, PEAK, MONS_REDBACK },
 { 10,  27,   10, SEMI, MONS_ORB_SPIDER },
 { 12,  29,  100, PEAK, MONS_JUMPING_SPIDER },
 { 13,  29,  110, PEAK, MONS_TARANTELLA },
 { 15,  29,  120, PEAK, MONS_WOLF_SPIDER },
 { 21,  27,   18, RISE, MONS_GHOST_MOTH },
 { 0,0,0,FLAT,MONS_0 }

}; Good Luck ! -- Fingolfin (talk) 14:49, 6 June 2016 (CEST)

I think I know what this means. So for worker ant, You can get it at level 0, and it has a score of 40, meaning that for every generated insect, there is a (score)/(total score) chance of it being a worker ant. Because it says FALL, that means that the chance falls from 0 evocations to 13.

Peak probably means that it peaks in the middle of the 2 skills and goes up/down linearly until it hits the peak.

Rise on the ghost moth probably means that the chance starts at 21 and then goes up to a peak of 18. Not sure what Semi is, someone should look into that.

Also the Flat Mons_0 at the end should have no impact and is probably there as a placeholder if they wanted to add a new insect.

Hope this helps! --BGRAS0 (talk) 17:56, 8 June 2016 (CEST)

That seems about right, but I'm confused by the max level of 29 for the jumping spider, the tarantella and the wolf spider. Also, if anyone is interested, this table appears in evoke.cc line 976 ([2]) and the function that handles the evocation of a sack of spiders is line 1050 -- Fingolfin (talk) 21:58, 8 June 2016 (CEST)