mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #10675 from SpaceVampire/persistence-change
Changes persistent smartfridge loss to a flat rate.
This commit is contained in:
committed by
Chompstation Bot
parent
18395abbe7
commit
4cfa3c377b
@@ -51,14 +51,8 @@
|
||||
|
||||
// Delete some stacks if we want
|
||||
if(stacks_go_missing)
|
||||
var/fuzzy = rand(-5,5)
|
||||
switch(count / max_amount)
|
||||
if(0 to 1)
|
||||
count -= 10+fuzzy // 1 stack or less, lose 10
|
||||
if(1 to 10)
|
||||
count -= max_amount+fuzzy // 1 to 10 stacks, lose a stack
|
||||
if(10 to INFINITY)
|
||||
count -= max_amount*3+fuzzy // 10+ stacks, lose 3 stacks
|
||||
var/fuzzy = rand(55,65)
|
||||
count = round(count*0.01*fuzzy) // loss of 35-45% with rounding down
|
||||
if(count <= 0)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user