Skip to content

Commit

Permalink
feat: two miner upgrades (#1003)
Browse files Browse the repository at this point in the history
* Raw silver/iesnium block
Crushing raw ores blocks
Tiered miners recipe
Increase spirits life
Minor fix

* Miner chance to weight

* Update Apotheosis integration
  • Loading branch information
Eqis-Edu authored and klikli-dev committed Dec 7, 2023
1 parent 38155ef commit d4d0956
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/generated/resources/assets/occultism/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"network.messages.occultism.request_order.order_received": "Order received!",
"occultism.jei.crushing": "Crusher Spirit",
"occultism.jei.miner": "Dimensional Mineshaft",
"occultism.jei.miner.chance": "Chance: %d%%",
"occultism.jei.miner.chance": "Weight: %d",
"occultism.jei.pentacle": "Pentacle",
"occultism.jei.ritual": "Occult Ritual",
"occultism.jei.spirit_fire": "Spiritfire",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2708,7 +2708,7 @@ private void addJeiTranslations() {
this.add("occultism.jei.spirit_fire", "Spiritfire");
this.add("occultism.jei.crushing", "Crusher Spirit");
this.add("occultism.jei.miner", "Dimensional Mineshaft");
this.add("occultism.jei.miner.chance", "Chance: %d%%");
this.add("occultism.jei.miner.chance", "Weight: %d");
this.add("occultism.jei.ritual", "Occult Ritual");
this.add("occultism.jei.pentacle", "Pentacle");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ public void setRecipe(IRecipeLayoutBuilder builder, MinerRecipe recipe, IFocusGr
new RecipeWrapper(simulatedHandler), level);
List<WeightedOutputIngredient> possibleResults = recipes.stream().map(MinerRecipe::getWeightedOutput).collect(Collectors.toList());

float chance = (float) recipe.getWeightedOutput().getWeight().asInt() / (float) WeightedRandom.getTotalWeight(possibleResults) * 100.0F;
//reduce to two decimals
chance = Math.round(chance * 10) / 10.0f;
float chance = (float) recipe.getWeightedOutput().getWeight().asInt()/100;
this.chances.put(recipe, chance);

builder.addSlot(RecipeIngredientRole.INPUT, 56, 12)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"block": "occultism:spirit_attuned_crystal",
"stats": {
"maxEterna": 22.5,
"eterna": 1,
"quanta": 0,
"arcana": 0,
"rectification": 0,
"clues": 0
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"block": "occultism:white_candle",
"block": "occultism:candle_white",
"stats": {
"maxEterna": 0,
"eterna": 0,
"quanta": 0,
"arcana": 0.3
"arcana": 3,
"rectification": 0,
"clues": 0
}
}

0 comments on commit d4d0956

Please sign in to comment.