l1j\server\server\FishingTimeController.java
//TODO 釣魚完成
private void finishFishing(L1PcInstance pc) {
int chance = _random.nextInt(215) + 1;
boolean finish = false;
int[] fish = { 41298, 41300, 41299, 41296, 41297, 41301, 41302, 41303, 41304, 40093,
41252, 47104, 40094, 41411, 41413, 40066, 40067, 41412, 41414, 40043 };
int[] random = { 20, 40, 60, 80, 100, 110, 120, 130, 140, 145,
150, 155, 160, 165, 170, 175, 180, 185, 190, 201, 204, 209, 215 };
for (int i = 0; i < fish.length; i++) {
if (random > chance) {
successFishing(pc, fish);
finish = true;
break;
-------------------------------------------------------------------
int chance = _random.nextInt(215) + 1;
代表噴的機率。215內
沒有留言:
張貼留言