-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f9bb19
commit 45228ae
Showing
7 changed files
with
147 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ run | |
# Files from Forge MDK | ||
forge*changelog.txt | ||
.DS_Store | ||
|
||
logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Modifiers | ||
This is a full list of modifiers in the game and a description of what they do. | ||
## Breakers | ||
These effects are applied when breaking blocks. | ||
### Veiny | ||
Breaking any block will cause all blocks of the same type adjacent to it to break up to 5 in each direction. | ||
### Magnetic | ||
Upon breaking a block (allowed by tool type), all items at that block's position will teleport to you. | ||
### Learning | ||
After breaking 10 blocks as allowed by this tool, gain 3 experience points. | ||
## Holders | ||
These effects are applied when holding the tool. | ||
### Rainy | ||
While holding the tool in the rain, mine faster! | ||
### Hasty | ||
While holding the tool, get the Haste effect. | ||
### Detecting | ||
While holding the tool, ores around you will glow. | ||
### Appley | ||
While holding the tool, get the absorption effect. | ||
### Tomb Raider | ||
While holding the spawners around you will glow. | ||
### Filling | ||
While holding the tool, get the saturation effect. | ||
## Users | ||
These effects are applied when right clicking. | ||
### Heartha's Grace | ||
Right clicking on the top of a block with the tool in hand will place a dirt block and use 1 durability points. | ||
### Spelunking | ||
Right clicking on the top of a block with the tool in hand will place a torch and use 10 durability points. | ||
### Fire Starter | ||
Right clicking on the top of a block while crouching with the tool in hand will start a fire and use 2 durability points. | ||
## Hurters | ||
These effects are applied when hurting enemies. | ||
### Poisonous | ||
When attacking with tool, apply the poison effect to the target. | ||
### Charged | ||
After 7 seconds, hitting and enemy will summon a lightning bolt and empty the charge meter. | ||
### Necrotic | ||
Heals 10% of damage dealt to target. | ||
### Critical | ||
Always critically strikes enemy. | ||
### Withering | ||
When attacking with tool, apply the wither effect to the target. | ||
### Blinding | ||
When attacking with tool, apply the blindness effect to the target. | ||
### Flaming | ||
Sets enemy on fire for 2 seconds. | ||
### Dexterous | ||
Hitting enemies within 2 seconds after hitting them deals an extra 25% damage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package dev.marston.randomloot; | ||
|
||
import java.io.File; | ||
import java.io.FileWriter; | ||
import java.io.IOException; | ||
import java.util.Iterator; | ||
import java.util.Set; | ||
|
||
import dev.marston.randomloot.loot.modifiers.Modifier; | ||
import dev.marston.randomloot.loot.modifiers.ModifierRegistry; | ||
|
||
public class GenWiki { | ||
|
||
private static void write(String s, FileWriter f) throws IOException { | ||
f.write(s + "\n"); | ||
} | ||
|
||
private static void writeMod(Modifier m, FileWriter f) throws IOException { | ||
write("### " + m.name(), f); | ||
|
||
write(m.description(),f ); | ||
} | ||
|
||
private static void writeMods(Set<Modifier> mods, FileWriter f) throws IOException { | ||
for (Iterator<Modifier> iterator = mods.iterator(); iterator.hasNext();) { | ||
Modifier modifier = iterator.next(); | ||
writeMod(modifier, f); | ||
} | ||
} | ||
|
||
private static void writeModifiers(FileWriter f) throws IOException { | ||
|
||
write("# Modifiers", f); | ||
write("This is a full list of modifiers in the game and a description of what they do.", f); | ||
|
||
write("## Breakers", f); | ||
write("These effects are applied when breaking blocks.", f); | ||
writeMods(ModifierRegistry.BREAKERS, f); | ||
|
||
write("## Holders", f); | ||
write("These effects are applied when holding the tool.", f); | ||
writeMods(ModifierRegistry.HOLDERS, f); | ||
|
||
write("## Users", f); | ||
write("These effects are applied when right clicking.", f); | ||
writeMods(ModifierRegistry.USERS, f); | ||
|
||
write("## Hurters", f); | ||
write("These effects are applied when hurting enemies.", f); | ||
writeMods(ModifierRegistry.HURTERS, f); | ||
|
||
} | ||
|
||
public static void genWiki() { | ||
|
||
String isProd = System.getenv("RL_PROD").strip(); | ||
RandomLootMod.LOGGER.info("RL_PROD: " + isProd); | ||
|
||
if (isProd.contains("false")) { | ||
RandomLootMod.LOGGER.info("Creating wiki..."); | ||
|
||
try { | ||
FileWriter wikiWriter = new FileWriter("../MODIFIERS.md"); | ||
writeModifiers(wikiWriter); | ||
wikiWriter.close(); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package dev.marston.randomloot; | ||
|
||
public class Globals { | ||
public static long Seed = 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters