depth.
Fix ziggurat spec weights being ignored.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9559 c06c8d41-db1a-0410-9941-cceddc491573
SCC6F4PQTDQXFHBIBC5AW5W4AP5VNARSPX6AWIUXGV76GBZDHA6QC 6IHRQWBU55WYBVB7K5HDJSBISE3J3VILUCMQ6WYOBUZ43DLOQ6VQC IHV7JHD4E67NEGLZEO3FPQGJPJF3IAV6QV5A63FPG4SU2VRFV47QC X7MFMKQTNZ2IWBFVGS6WQV7NRNKJ3DWQAW2X7IQMFQQXW24AHPZQC 5DECJIOSMFWX7DMDTGVNPNV6QQP6O34F3XHFHRXGCTJUZMVIXT7QC DUFJKFM5KBCM4272ZKLBPGKHLMDLK6RABUNTDEWRZULTKDTHHSBAC NKONHW4JNY6HP2M63MNPM3H64ZWSUNUT5FX2STW4KTS4AMXJXXVQC -- spec_fn can be used to wrap a function that returns a monster spec.-- This is useful if you want to adjust monster weights in the spec-- wrt to depth in the ziggurat. At level-generation time, the spec-- returned by this function will also be used to init the monster-- population (with dgn.set_random_mon_list). As an example:mset(spec_fn(function ()local depth = zig().depthreturn "place:Vault:$ w:" .. (50 - depth) .." / ancient lich w:" .. math.max(0, depth - 12)end))