Skip to content

Fix to inprove experience of Southperry to Lith and other fixes from the Java language :)#297

Closed
gerardo-cornejo wants to merge 5 commits intoP0nk:masterfrom
gerardo-cornejo:master
Closed

Fix to inprove experience of Southperry to Lith and other fixes from the Java language :)#297
gerardo-cornejo wants to merge 5 commits intoP0nk:masterfrom
gerardo-cornejo:master

Conversation

@gerardo-cornejo
Copy link

Description

It's a small fix to inprove the experience with you travel from Southperry to Lith Harbor

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested my changes
  • [NA] I have added unit tests that prove my changes work

Screenshots

compressed_under_10MB

185000, 190000, 195000, 200000, 205000, 210000, 215000, 220000, 225000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 300000, 310000, 320000,
330000, 340000, 350000, 360000, 370000, 380000, 390000, 400000, 410000, 420000, 430000, 440000, 450000, 460000, 470000, 480000, 490000, 500000, 510000, 520000,
530000, 550000, 570000, 590000, 610000, 630000, 650000, 670000, 690000, 710000, 730000, 750000, 770000, 790000, 810000, 830000, 850000, 870000, 890000, 910000};
private static final int[] mobHpVal = {0, 15, 20, 25, 35, 50, 65, 80, 95, 110, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 405, 435, 465, 495, 525, 580, 650, 720, 790, 900, 990, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2520, 2640, 2760, 2880, 3000, 3200, 3400, 3600, 3800, 4000, 4300, 4600, 4900, 5200, 5500, 5900, 6300, 6700, 7100, 7500, 8000, 8500, 9000, 9500, 10000, 11000, 12000, 13000, 14000, 15000, 17000, 19000, 21000, 23000, 25000, 27000, 29000, 31000, 33000, 35000, 37000, 39000, 41000, 43000, 45000, 47000, 49000, 51000, 53000, 55000, 57000, 59000, 61000, 63000, 65000, 67000, 69000, 71000, 73000, 75000, 77000, 79000, 81000, 83000, 85000, 89000, 91000, 93000, 95000, 97000, 99000, 101000, 103000, 105000, 107000, 109000, 111000, 113000, 115000, 118000, 120000, 125000, 130000, 135000, 140000, 145000, 150000, 155000, 160000, 165000, 170000, 175000, 180000, 185000, 190000, 195000, 200000, 205000, 210000, 215000, 220000, 225000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 300000, 310000, 320000, 330000, 340000, 350000, 360000, 370000, 380000, 390000, 400000, 410000, 420000, 430000, 440000, 450000, 460000, 470000, 480000, 490000, 500000, 510000, 520000, 530000, 550000, 570000, 590000, 610000, 630000, 650000, 670000, 690000, 710000, 730000, 750000, 770000, 790000, 810000, 830000, 850000, 870000, 890000, 910000};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert, it was intentionally split every 20 items. Better to keep lines shorter.

return switch (mapid) {
case MapId.HALL_OF_WARRIORS, MapId.HALL_OF_MAGICIANS, MapId.HALL_OF_BOWMEN, MapId.HALL_OF_THIEVES,
MapId.NAUTILUS_TRAINING_ROOM, MapId.KNIGHTS_CHAMBER, MapId.KNIGHTS_CHAMBER_LARGE,
MapId.KNIGHTS_CHAMBER_2, MapId.KNIGHTS_CHAMBER_3, MapId.PALACE_OF_THE_MASTER -> // aran
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only kept 1 comment?

Comment on lines -494 to +459
|| Aran.HIDDEN_FULL_DOUBLE == skill || Aran.HIDDEN_FULL_TRIPLE == skill || Aran.HIDDEN_OVER_DOUBLE == skill || Aran.HIDDEN_OVER_TRIPLE == skill
|| Aran.COMBO_SMASH == skill || Aran.DOUBLE_SWING == skill || Aran.TRIPLE_SWING == skill;
return Aran.FULL_SWING == skill || Aran.OVER_SWING == skill || Aran.COMBO_TEMPEST == skill || Aran.COMBO_FENRIR == skill || Aran.COMBO_DRAIN == skill || Aran.HIDDEN_FULL_DOUBLE == skill || Aran.HIDDEN_FULL_TRIPLE == skill || Aran.HIDDEN_OVER_DOUBLE == skill || Aran.HIDDEN_OVER_TRIPLE == skill || Aran.COMBO_SMASH == skill || Aran.DOUBLE_SWING == skill || Aran.TRIPLE_SWING == skill;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove line breaks? Long lines are generally messy to deal with

Comment on lines +55 to +57
} else if (cm.getPlayer().getLevel() < 25) {
cm.sendOk("Hmmm... You are too weak to go to the Ant Tunnel. I suggest you train a bit more before going there.");
cm.dispose();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this a real thing in GMS or something you came up with?

InventoryManipulator.addFromDrop(c, item, false);
} else {
InventoryManipulator.addById(c, reward.itemid, reward.quantity, "", -1);
c.getPlayer().message("You have received " + reward.quantity + " " + ii.getName(reward.itemid) + " for opening a " + ii.getName(itemId) + ".");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this a thing in GMS or something you made up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants