Update Bandori module.
This commit is contained in:
parent
3ebdd94951
commit
397403d8c2
1
sessions
1
sessions
@ -0,0 +1 @@
|
|||||||
|
155,1555130060,1555132179,SigoNitori's Race,4,none,sigonasr2;sigonitori,5.00,0,7
|
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -28,7 +28,8 @@ import sig.utils.SoundUtils;
|
|||||||
|
|
||||||
public class BandoriModule extends Module{
|
public class BandoriModule extends Module{
|
||||||
public static BandoriModule bandori_module;
|
public static BandoriModule bandori_module;
|
||||||
public BufferedImage stamp_collection1,stamp_collection2;
|
public BufferedImage stamp_collection1,stamp_collection2,stamp_collection3
|
||||||
|
,stamp_collection4,stamp_collection5,stamp_collection6,stamp_collection7,stamp_collection8,stamp_collection9,stamp_collection10;
|
||||||
public static HashMap<String,ImageScheme> image_map = new HashMap<String,ImageScheme>();
|
public static HashMap<String,ImageScheme> image_map = new HashMap<String,ImageScheme>();
|
||||||
public static HashMap<String,List<String>> stamp_map = new HashMap<String,List<String>>();
|
public static HashMap<String,List<String>> stamp_map = new HashMap<String,List<String>>();
|
||||||
static List<Stamp> active_stamps = new ArrayList<Stamp>();
|
static List<Stamp> active_stamps = new ArrayList<Stamp>();
|
||||||
@ -52,6 +53,14 @@ public class BandoriModule extends Module{
|
|||||||
try {
|
try {
|
||||||
stamp_collection1 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamps1.png"));
|
stamp_collection1 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamps1.png"));
|
||||||
stamp_collection2 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamps2_2.png"));
|
stamp_collection2 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamps2_2.png"));
|
||||||
|
stamp_collection3 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_018003.png"));
|
||||||
|
stamp_collection4 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_003003.png"));
|
||||||
|
stamp_collection5 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_0007003.png"));
|
||||||
|
stamp_collection6 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_011005.png"));
|
||||||
|
stamp_collection7 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_013003.png"));
|
||||||
|
stamp_collection8 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_016002.png"));
|
||||||
|
stamp_collection9 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_017004.png"));
|
||||||
|
stamp_collection10 = ImageIO.read(new File(sigIRC.BASEDIR+"sigIRC/stamp_021004.png"));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -110,6 +119,24 @@ public class BandoriModule extends Module{
|
|||||||
image_map.put("arisa_okayhereigo", new ImageScheme(stamp_collection2,29));
|
image_map.put("arisa_okayhereigo", new ImageScheme(stamp_collection2,29));
|
||||||
image_map.put("tomoe_giveityourall", new ImageScheme(stamp_collection2,30));
|
image_map.put("tomoe_giveityourall", new ImageScheme(stamp_collection2,30));
|
||||||
image_map.put("kanon_keepgoing", new ImageScheme(stamp_collection2,31));
|
image_map.put("kanon_keepgoing", new ImageScheme(stamp_collection2,31));
|
||||||
|
image_map.put("kokoro_letshavefun", new ImageScheme(stamp_collection2,32));
|
||||||
|
image_map.put("kasumi_letshaveagreatshow", new ImageScheme(stamp_collection2,33));
|
||||||
|
image_map.put("ako_illshowyousomethingcool", new ImageScheme(stamp_collection2,34));
|
||||||
|
image_map.put("yukina_mindifipetyou", new ImageScheme(stamp_collection2,35));
|
||||||
|
image_map.put("maya_whoa", new ImageScheme(stamp_collection2,36));
|
||||||
|
image_map.put("hina_interesting", new ImageScheme(stamp_collection2,37));
|
||||||
|
image_map.put("kaoru_imherewithyou", new ImageScheme(stamp_collection2,38));
|
||||||
|
image_map.put("ran_itonlygetsbetter", new ImageScheme(stamp_collection2,39));
|
||||||
|
image_map.put("himari_onthescene", new ImageScheme(stamp_collection2,40));
|
||||||
|
image_map.put("rinko_wasthatgood", new ImageScheme(stamp_collection2,41));
|
||||||
|
image_map.put("chisato_greaterthangreat", new SingleImageScheme(stamp_collection3));
|
||||||
|
image_map.put("rimi_imsureitllbefine", new SingleImageScheme(stamp_collection4));
|
||||||
|
image_map.put("moca_letsgetstarted", new SingleImageScheme(stamp_collection5));
|
||||||
|
image_map.put("kokoro_justlikethat", new SingleImageScheme(stamp_collection6));
|
||||||
|
image_map.put("hagumi_roar", new SingleImageScheme(stamp_collection7));
|
||||||
|
image_map.put("aya_somuchpressure", new SingleImageScheme(stamp_collection8));
|
||||||
|
image_map.put("hina_ivebeenwaiting", new SingleImageScheme(stamp_collection9));
|
||||||
|
image_map.put("yukina_nexttime", new SingleImageScheme(stamp_collection10));
|
||||||
|
|
||||||
stamp_map.put("kasumi_gogo",Arrays.asList("gogo"));
|
stamp_map.put("kasumi_gogo",Arrays.asList("gogo"));
|
||||||
stamp_map.put("tae_letsplay",Arrays.asList("playtogether","wanttoplay","multilive","letsplay"));
|
stamp_map.put("tae_letsplay",Arrays.asList("playtogether","wanttoplay","multilive","letsplay"));
|
||||||
@ -166,6 +193,24 @@ public class BandoriModule extends Module{
|
|||||||
stamp_map.put("arisa_okayhereigo",Arrays.asList("hereigo","okayilltry","alrightilltry","domybest","trymybest","alrighty","itashot","myturn","domybest"));
|
stamp_map.put("arisa_okayhereigo",Arrays.asList("hereigo","okayilltry","alrightilltry","domybest","trymybest","alrighty","itashot","myturn","domybest"));
|
||||||
stamp_map.put("tomoe_giveityourall",Arrays.asList("giveiteverything","allyougot","everythingyougot","tryyourbest","giveityourall","youreverything","yourall"));
|
stamp_map.put("tomoe_giveityourall",Arrays.asList("giveiteverything","allyougot","everythingyougot","tryyourbest","giveityourall","youreverything","yourall"));
|
||||||
stamp_map.put("kanon_keepgoing",Arrays.asList("keepgoing","dontstop","youcandoit","makeit","gaja","petan","pettan","pengu"));
|
stamp_map.put("kanon_keepgoing",Arrays.asList("keepgoing","dontstop","youcandoit","makeit","gaja","petan","pettan","pengu"));
|
||||||
|
stamp_map.put("kokoro_letshavefun",Arrays.asList("havefun","timeforfun"));
|
||||||
|
stamp_map.put("kasumi_letshaveagreatshow",Arrays.asList("greatshow"));
|
||||||
|
stamp_map.put("ako_illshowyousomethingcool",Arrays.asList("havefun","timeforfun"));
|
||||||
|
stamp_map.put("yukina_mindifipetyou",Arrays.asList("havefun","timeforfun"));
|
||||||
|
stamp_map.put("maya_whoa",Arrays.asList("havefun","timeforfun"));
|
||||||
|
stamp_map.put("hina_interesting",Arrays.asList("rururu","interesting"));
|
||||||
|
stamp_map.put("kaoru_imherewithyou",Arrays.asList("herewithyou","hereforyou"));
|
||||||
|
stamp_map.put("ran_itonlygetsbetter",Arrays.asList("getsbetter","onlygets"));
|
||||||
|
stamp_map.put("rinko_wasthatgood",Arrays.asList("wasthatgood","wasitgood"));
|
||||||
|
stamp_map.put("himari_onthescene",Arrays.asList("thescene"));
|
||||||
|
stamp_map.put("chisato_greaterthangreat",Arrays.asList("great"));
|
||||||
|
stamp_map.put("rimi_imsureitllbefine",Arrays.asList("itwillbefine","itllbefine","itsfine","thatsokay","bealright"));
|
||||||
|
stamp_map.put("moca_letsgetstarted",Arrays.asList("started"));
|
||||||
|
stamp_map.put("kokoro_justlikethat",Arrays.asList("likethat"));
|
||||||
|
stamp_map.put("hagumi_roar",Arrays.asList("roar","rawr","meow"));
|
||||||
|
stamp_map.put("aya_somuchpressure",Arrays.asList("pressure","tough"));
|
||||||
|
stamp_map.put("hina_ivebeenwaiting",Arrays.asList("waiting"));
|
||||||
|
stamp_map.put("yukina_nexttime",Arrays.asList("nexttime"));
|
||||||
|
|
||||||
/*for (String s : image_map.keySet()) {
|
/*for (String s : image_map.keySet()) {
|
||||||
ImageScheme scheme = image_map.get(s);
|
ImageScheme scheme = image_map.get(s);
|
||||||
@ -266,8 +311,13 @@ public class BandoriModule extends Module{
|
|||||||
super.draw(g);
|
super.draw(g);
|
||||||
for (Stamp s : active_stamps) {
|
for (Stamp s : active_stamps) {
|
||||||
//Stamp is 130x107 pixels
|
//Stamp is 130x107 pixels
|
||||||
g.drawImage(s.scheme.base, (int)(s.randX+position.getX()), (int)position.getY()+24, (int)(s.randX+130+position.getX()), (int)position.getY()+24+107,
|
if (s.scheme instanceof SingleImageScheme) {
|
||||||
|
g.drawImage(s.scheme.base,(int)(s.randX+position.getX()),(int)position.getY()+24, (int)(s.randX+130+position.getX()), (int)position.getY()+24+107,0,0,
|
||||||
|
s.scheme.base.getWidth(),s.scheme.base.getHeight(),sigIRC.panel);
|
||||||
|
} else {
|
||||||
|
g.drawImage(s.scheme.base, (int)(s.randX+position.getX()), (int)position.getY()+24, (int)(s.randX+130+position.getX()), (int)position.getY()+24+107,
|
||||||
s.scheme.stamp_index%6*270+4, s.scheme.stamp_index/6*223+3, s.scheme.stamp_index%6*270+260+4, s.scheme.stamp_index/6*223+214+3, sigIRC.panel);
|
s.scheme.stamp_index%6*270+4, s.scheme.stamp_index/6*223+3, s.scheme.stamp_index%6*270+260+4, s.scheme.stamp_index/6*223+214+3, sigIRC.panel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Point2D basepos = new Point2D(this.getPosition().getX(),this.getPosition().getHeight()+this.getPosition().getY()+24);
|
Point2D basepos = new Point2D(this.getPosition().getX(),this.getPosition().getHeight()+this.getPosition().getY()+24);
|
||||||
double successChance = 1;
|
double successChance = 1;
|
||||||
@ -384,3 +434,11 @@ class ImageScheme{
|
|||||||
this.stamp_index=index;
|
this.stamp_index=index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class SingleImageScheme extends ImageScheme{
|
||||||
|
|
||||||
|
SingleImageScheme(BufferedImage base) {
|
||||||
|
super(base, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
SigoNitori
|
SigoNitori
|
||||||
25
|
10
|
||||||
|
1557138165
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
@ -10,9 +11,9 @@ SigoNitori
|
|||||||
false
|
false
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
5.361208E-36
|
0.0
|
||||||
4.8674998E-36
|
0.0
|
||||||
1536205835
|
1557138245
|
||||||
KEYITEMS:
|
KEYITEMS:
|
||||||
BADGES:
|
BADGES:
|
||||||
UPDATES:
|
UPDATES:
|
Loading…
x
Reference in New Issue
Block a user