RELEASED Artifact Drop Rate

Discussion in 'Mods' started by SunTide, Mar 20, 2018.

  1. SunTide

    SunTide Scruffy Nerf-Herder

    Artifact Drop Rate 1.0.0 by Suntide

    Installation
    This is a Content Patcher mod. You must have Content Patcher installed to use this mod. Content Patcher in turn requires SMAPI. If you do have Content Patcher installed, all you need to do is unzip the ArtifactDropRate folder into your Mods folder. This mod intercepts (but does not overwrite) the contents of ObjectInformation.yaml. Because it is a Content Patcher mod, it does not conflict with other mods that happen to alter this file, unless they also specifically alter the drop rates of the artifacts. This mod should not break if Stardew Valley gets updated, although if new artifacts get added, they will have to be added to the content.json file.

    What this mod does
    This mod allows you to alter the odds of artifacts dropping from dig sites on an artifact-by-artifact basis. You can also add, remove, or change which regions the artifacts can spawn in. This mod ONLY affects drops from artifact dig sites. Fishing chests, monster drops, and digging up sand in the mines are NOT affected.

    It helps to understand how artifact drops are processed by the game. Each artifact has an ID number. When you dig up a site, the game checks the list for artifacts that are eligible for that region (e.g. town, forest, farm, etc.) and rolls against the drop rate of each qualifying artifact. If an artifact passes its roll, that artifact is spawned and the game stops rolling. This is done in order of ID number. This means that artifacts with higher ID numbers are rarer than their printed odds would make it seem, because not only do they have to pass their check, but every artifact above them on the list also has to fail. This is also why there are no simple "better drop rate" mods out there.

    For example, the Chipped Amphora has the lowest ID of all of the artifacts. If you were to alter the Chipped Amphora to have "Town 1.0" (i.e. a 100% drop rate in in the town map), then the Chipped Amphora is the ONLY artifact that you will EVER find in town. The other town artifacts on the list will never get a chance to roll on their charts, because the Chipped Amphora will always win first.

    Usage
    Open content.json (included in this package) and alter the entries as you see fit. The starting numbers are copied directly from the game files, so by default, this mod changes nothing. It just gives you the ability to make changes yourself. Here's an example line:

    "101": { 0: "Arrowhead", 6: "Mountain .02 Forest .02 BusStop 0.02" },

    This means that the Arrowhead artifact has a 2% drop rate from artifact dig sites found in the Mountain, Forest, and Bus Stop maps. Changing the line to read

    "101": { 0: "Arrowhead", 6: "Mountain 0.5 Town .02 BusStop 0.02" },

    would mean that the Arrowhead now has a 50% rate in Mountain sites, 2% in Town sites, and 2% in Bus Stop sites. The original 2% Forest rate is now gone (i.e. set to 0%).

    Some artifacts have an UndergroundMine entry. There are no artifact dig sites in the mines, and these entries do nothing. They specifically do NOT affect drop rates from digging up sand in the caves.


    Alter the numbers as you see fit, remembering that giving high numbers to the lower ordinal artifacts can possibly choke out artifacts that are lower on the list. You can also use this mod to remove artifacts that you already have from the pool. Just remember that these changes will be present in all of your savegames.

    If you screw up badly, I included a file called "content - backup.json" It contains the original, unmodded data, so you can easily revert to the default numbers.
     
      Last edited: Mar 20, 2018
      HopeWasHere likes this.
    • SunTide

      SunTide Scruffy Nerf-Herder

      For people who don't want the mod but do want to see what the drop rates are, here they are. Keep in mind that these are the odds of the artifact dropping if it is checked, which is different from the total joint odds of the artifact being checked and passing the check.
      Code:
        "100": { 0: "Chipped Amphora", 6: "Town 0.04" },
        "101": { 0: "Arrowhead", 6: "Mountain .02 Forest .02 BusStop 0.02" },
        "102": { 0: "Lost Book", 6: "Town .05" },
        "103": { 0: "Ancient Doll", 6: "Mountain .04 Forest .03 BusStop .03 Town .01" },
        "104": { 0: "Elvish Jewelry", 6: "Forest 0.01" },
        "105": { 0: "Chewing Stick", 6: "Mountain .02 Town .01 Forest .02" },
        "106": { 0: "Ornamental Fan", 6: "Beach .02 Town .008 Forest .01" },
        "107": { 0: "Dinosaur Egg", 6: "Mine .01 Mountain .008" },
        "108": { 0: "Rare Disc", 6: "UndergroundMine .01" },
        "109": { 0: "Ancient Sword", 6: "Forest .01 Mountain .008" },
        "110": { 0: "Rusty Spoon", 6: "Town .05" },
        "111": { 0: "Rusty Spur", 6: "Farm .1" },
        "112": { 0: "Rusty Cog", 6: "Mountain .05" },
        "113": { 0: "Chicken Statue", 6: "Farm .1" },
        "114": { 0: "Ancient Seed", 6: "Forest .01 Mountain .01" },
        "115": { 0: "Prehistoric Tool", 6: "Mountain .03 Forest .03 BusStop .04" },
        "116": { 0: "Dried Starfish", 6: "Beach .1" },
        "117": { 0: "Anchor", 6: "Beach .05" },
        "118": { 0: "Glass Shards", 6: "Beach .1" },
        "119": { 0: "Bone Flute", 6: "Mountain .01 Forest .01 UndergroundMine .02 Town .005" },
        "120": { 0: "Prehistoric Handaxe", 6: "Mountain .05 Forest .05 BusStop .05" },
        "121": { 0: "Dwarvish Helm", 6: "UndergroundMine .01" },
        "122": { 0: "Dwarf Gadget", 6: "UndergroundMine .001" },
        "123": { 0: "Ancient Drum", 6: "BusStop .01 Forest .01 UndergroundMine .02 Town .005" },
        "124": { 0: "Golden Mask", 6: "Desert .04" },
        "125": { 0: "Golden Relic", 6: "Desert .08" },
        "126": { 0: "Strange Doll", 6: "Farm .001 Town .001 Mountain .001 Forest .001 BusStop .001 Beach .001 UndergroundMine .001" },
        "127": { 0: "Strange Doll", 6: "Farm .001 Town .001 Mountain .001 Forest .001 BusStop .001 Beach .001 UndergroundMine .001" },
        "579": { 0: "Prehistoric Scapula", 6: "Desert .08" },
        "580": { 0: "Prehistoric Tibia", 6: "Forest .01" },
        "581": { 0: "Prehistoric Skull", 6: "Mountain .01" },
        "582": { 0: "Skeletal Hand", 6: "Beach .01" },
        "583": { 0: "Prehistoric Rib", 6: "Farm .01" },
        "584": { 0: "Prehistoric Vertebra", 6: "BusStop .01" },
        "585": { 0: "Skeletal Tail", 6: "UndergroundMine .01" },
        "586": { 0: "Nautilus Fossil", 6: "Beach .03" },
        "587": { 0: "Amphibian Fossil", 6: "Forest .01 Mountain .01" },
        "588": { 0: "Palm Fossil", 6: "Desert .1 Beach .01 Forest .01" },
        "589": { 0: "Trilobite", 6: "Beach .03 Mountain .03 Forest .03" }
       
      • SunTide

        SunTide Scruffy Nerf-Herder

        Updated to 1.0.1: The Content - backup.json was botched so I fixed it. I also added two new files that contain the data for doubled and tripled artifact rates, for people that don't want to do it themselves.
         

        Share This Page