Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (plugin.isRunXarpus())
- {
- NPC boss = plugin.getXarpus_NPC();
- if (boss.getId() == NpcID.XARPUS_8340 /*&& !plugin.isXarpus_Stare()*/ && config.XarpusTick())
- {
- //int xarpusHp = boss.getHealthRatio();
- int tick = plugin.getXarpus_TicksUntilShoot();
- if (tick < 1)
- {
- if(boss.getOverheadText() != null)
- System.out.println(boss.getOverheadText());
- if(plugin.isXarpus_Stare()){
- tick = tick % 8 + 8;
- // xarpusStared = true;
- }else tick = tick % 4+ 4;
- }
- final String ticksLeftStr = String.valueOf(tick);
- Point canvasPoint = boss.getCanvasTextLocation(graphics, ticksLeftStr, 130);
- if (tick == 2)
- color = Color.red;
- else color = Color.white;
- renderTextLocation(graphics, ticksLeftStr, 14, Font.BOLD, color, canvasPoint);
- }
- if (boss.getId() == NpcID.XARPUS_8339 && config.XarpusExhumed())
- {
- for (GroundObject o : plugin.getXarpus_Exhumeds().keySet())
- {
- Polygon poly = o.getCanvasTilePoly();
- if (poly != null)
- {
- graphics.setColor(safeColor);
- graphics.setStroke(new BasicStroke(2));
- graphics.draw(poly);
- }
- Point textLocation = o.getCanvasTextLocation(graphics, String.valueOf(TheatrePlugin.exhumedCounter), 0);
- if (textLocation != null)
- {
- OverlayUtil.renderTextLocation(graphics, textLocation, String.valueOf(TheatrePlugin.exhumedCounter), Color.YELLOW);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement