jinrou icon indicating copy to clipboard operation
jinrou copied to clipboard

fix: special jobs losts discount on prize counter

Open Sunev opened this issue 5 years ago • 4 comments

If I didn't get you wrong, you intends to give those special jobs a discount on prize counter in this block and this win_sample.csv. However, former RegExp makes res[2] always unavailable.

By merging this PR, players would

  1. gain prize of special jobs explosively,
  2. must set their .nowprize again before their "nowprize" could display properly.

Sunev avatar Feb 26 '20 17:02 Sunev

Or we might need a tool/repair10.js to repair player.prize and player.nowprize in DB, during the server shut down.

Sunev avatar Feb 26 '20 18:02 Sunev

Ehhhhhhh..... what....... oh.... Thanks anyway........ Yes, repair10.js seems the best way to go, but let me consider whether we can do that.

uhyo avatar Feb 27 '20 10:02 uhyo

That would be not impossible.

  1. Deal win.csv and lose.csv with new and old loadTable(), and find the differences.
  2. Traversal db.users to replace user.prize and user.nowprize items with correct ones. I think.

Sunev avatar Feb 27 '20 10:02 Sunev

Yeah... I think I can try. Anyway let me handle this during March 🙂 February release will come soon.

uhyo avatar Feb 27 '20 11:02 uhyo