everything is fine (#1580)

## About The Pull Request

EVERYTHING IS FINE

## Why It's Good For The Game

AAAAAAA

## Proof Of Testing

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

## Changelog

🆑 BurgerBB
fix: Fixes maint loot being absurd.
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

<!-- By opening a pull request. You have read and understood the
repository rules located on the main README.md on this project. -->

---------

Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
This commit is contained in:
BurgerLUA
2024-05-31 21:26:45 +02:00
committed by GitHub
co-authored by Waterpig
parent ba2c4e3806
commit b4a478ebd0
@@ -19,7 +19,13 @@
loot = GLOB.maintenance_loot
//BUBBERSTATION CHANGE START: EMPTY MAINT LOOT TRAIT ONLY SPAWNS THE BEST LOOT
if(HAS_TRAIT(SSstation, STATION_TRAIT_EMPTY_MAINT))
loot = prob(80) ? GLOB.rarity_loot : GLOB.oddity_loot
if(prob(80))
loot = GLOB.uncommon_loot
else if(prob(80))
loot = GLOB.rarity_loot
else
loot = GLOB.oddity_loot
//BUBBERSTATION CHANGE END
return ..()
@@ -43,7 +49,14 @@
effective_lootcount = FLOOR(spawn_loot_count * 1.5, 1)
else if(HAS_TRAIT(SSstation, STATION_TRAIT_EMPTY_MAINT))
effective_lootcount = 1 //BUBBERSTATION CHANGE: ALWAYS JUST ONE.
//BUBBERSTATION CHANGE START: EMPTY MAINT LOOT TRAIT ONLY SPAWNS THE BEST LOOT. USUALLY
if(loot == GLOB.uncommon_loot )
effective_lootcount = min(effective_lootcount,3) //Maximum 3.
else if(effective_lootcount > 1)
effective_lootcount = 1
else
effective_lootcount = 0
//BUBBERSTATION CHANGE END: EMPTY MAINT LOOT TRAIT ONLY SPAWNS THE BEST LOOT. USUALLY
return effective_lootcount