Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 6430e6b

Browse files
committed
Horny Module (if you care about 18< age players i add 18+ confirmation)
1 parent 08597ed commit 6430e6b

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

src/main/code/chaos/Main.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package chaos
22

33
import arc.Events
4+
import chaos.horny.HentaiMain
45
import mindustry.Vars
56
import mindustry.game.EventType
67
import mindustry.mod.Mod
@@ -30,6 +31,6 @@ class Main extends Mod{
3031

3132
@Override
3233
void init(){
33-
34+
new HentaiMain();
3435
}
3536
}
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package chaos.horny;
2+
3+
//owned by horny part of cumunity
4+
5+
import arc.Events;
6+
import arc.audio.Sound;
7+
import mindustry.game.EventType;
8+
import mindustry.game.Schematic;
9+
10+
import java.util.HashMap;
11+
import java.util.Map;
12+
13+
import static mindustry.Vars.ui;
14+
15+
public class HentaiMain{
16+
17+
protected static Map<String, Sound> hornySoundsMap = new HashMap<>();
18+
protected static Map<String, Schematic> hornySchemaMap = new HashMap<>();
19+
20+
public HentaiMain(){
21+
if(showHornyConfirm()){
22+
eventsLoader();
23+
interfaceOverride();
24+
loadAssets();
25+
}
26+
}
27+
public void eventsLoader(){
28+
Events.on(EventType.WorldLoadEvent.class,r->{
29+
//hornySoundsMap.get("worldLoadEvent").play(1f, 1f, 0f);
30+
});
31+
Events.on(EventType.UnitDestroyEvent.class,e->{
32+
if(e.unit.isPlayer()){
33+
//hornySoundsMap.get("yamete_kudosai").play(1f, 1f, 0f);
34+
}else{
35+
//hornySoundsMap.get("hornyOhNo1").play(1f, 1f, 0f);
36+
}
37+
});
38+
}
39+
public void interfaceOverride(){
40+
//some custom interfaces and menus should be there
41+
}
42+
public void loadAssets(){
43+
//coming soon, assets in active search. If you can help with search send any content to [email protected] or сестрёнка#8227
44+
}
45+
46+
private boolean showHornyConfirm(){
47+
try{
48+
ui.showConfirm("@confirm", "Is you 18+ older?", () -> {
49+
throw new RuntimeException("Hentai is confirmed");
50+
});
51+
}catch (Exception confirmed){
52+
return true;
53+
}
54+
return false;
55+
}
56+
}

0 commit comments

Comments
 (0)