Difference between revisions of "Talk:Sack of spiders"

From CrawlWiki
Jump to: navigation, search
(Offered some insight to the table, if anyone wants to try and crank out the calculations.)
(not sure about the existing table)
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
-- [[User:Fingolfin|Fingolfin]] ([[User talk:Fingolfin|talk]]) 14:49, 6 June 2016 (CEST)
 
-- [[User:Fingolfin|Fingolfin]] ([[User talk: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.
+
: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.  
 
Peak probably means that it peaks in the middle of the 2 skills and goes up/down linearly until it hits the peak.  
  
Line 26: Line 26:
 
Hope this helps!
 
Hope this helps!
 
--[[User:BGRAS0|BGRAS0]] ([[User talk:BGRAS0|talk]]) 17:56, 8 June 2016 (CEST)
 
--[[User:BGRAS0|BGRAS0]] ([[User talk: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 ([https://github.com/crawl/crawl/blob/1edb3d8ce98a146bd03253c3c3e7d4b92180328f/crawl-ref/source/evoke.cc#L976]) and the function that handles the evocation of a sack of spiders is line 1050 -- [[User:Fingolfin|Fingolfin]] ([[User talk:Fingolfin|talk]]) 21:58, 8 June 2016 (CEST)
 +
 +
:::Thank you [[User:Fingolfin|Fingolfin]] for providing the code diving results. I've attempted to put it into the update. Well, I'm not sure about the existing table of possible outcomes: it should be eliminated maybe. What do you think? -- [[User:Bwijn|Bwijn]] ([[User talk:Bwijn|talk]]) 21:54, 23 June 2016 (CEST)

Latest revision as of 20:54, 23 June 2016

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)
Thank you Fingolfin for providing the code diving results. I've attempted to put it into the update. Well, I'm not sure about the existing table of possible outcomes: it should be eliminated maybe. What do you think? -- Bwijn (talk) 21:54, 23 June 2016 (CEST)