update comments in expand_rate
This commit is contained in:
+1
-2
@@ -28,8 +28,7 @@ string RareItemSet::ExpandedDrop::str(shared_ptr<const ItemNameIndex> name_index
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t RareItemSet::expand_rate(uint8_t pc) {
|
uint32_t RareItemSet::expand_rate(uint8_t pc) {
|
||||||
// To compute the actual drop rare drop rate from pc, first decode pc into
|
// To compute the actual rare drop rate from pc, first decode pc:
|
||||||
// shift and value:
|
|
||||||
// pc = bits SSSSSVVV
|
// pc = bits SSSSSVVV
|
||||||
// shift = S - 4 (so shift is 0-27)
|
// shift = S - 4 (so shift is 0-27)
|
||||||
// value = V + 7 (so value is 7-14)
|
// value = V + 7 (so value is 7-14)
|
||||||
|
|||||||
Reference in New Issue
Block a user