Difference between revisions of "Talk:Weapons"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (I always forget the signature)
Line 7: Line 7:
 
Including the information in the [[Modding:Weapon data|modding section]] would be a big plus.  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 14:59, 21 March 2021 (UTC)
 
Including the information in the [[Modding:Weapon data|modding section]] would be a big plus.  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 14:59, 21 March 2021 (UTC)
 
:My initial assumptions seemed to make sense but it was based from backwards logic where I knew the result and was looking for code that could lead to said result. I now actually don't think the divide by 2 sellprice is correct anymore, due to the fact that when I edited some Weapons on the German wiki I noticed the pre 1.5 weapon levels were much higher than now - e.g. Lava Katana was 15 and Galaxy Sword 26, vs now post 1.5 lvls 10 and 13 respectively. So the mystery is where exactly the change took place and whether itemlevels truly are not "pulled" from somewhere but rather calculated, in which case the calculation must have changed to drastically decrease item levels (and thus sellprice). [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 20:36, 21 March 2021 (UTC)
 
:My initial assumptions seemed to make sense but it was based from backwards logic where I knew the result and was looking for code that could lead to said result. I now actually don't think the divide by 2 sellprice is correct anymore, due to the fact that when I edited some Weapons on the German wiki I noticed the pre 1.5 weapon levels were much higher than now - e.g. Lava Katana was 15 and Galaxy Sword 26, vs now post 1.5 lvls 10 and 13 respectively. So the mystery is where exactly the change took place and whether itemlevels truly are not "pulled" from somewhere but rather calculated, in which case the calculation must have changed to drastically decrease item levels (and thus sellprice). [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 20:36, 21 March 2021 (UTC)
 +
 +
: the decompiled code was kind of a messy headache to read, but after testing in excel (so much easier than calculating manually!) I could finally decypher a working formula. added it to the page but since I did all the testing in excel on various weapons I am not 100% if I nailed the transition into wiki e.g. bracket placements (maths is hard) [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 15:54, 28 March 2021 (UTC)

Revision as of 15:54, 28 March 2021

This talk page is for discussing Weapons.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Weapon Level

Based on discussions on User talk:JaksStrange, we have deduced that the sell-to-Adventure Guild price for several weapons has changed with v1.5. The reason seems to be that the weapon levels have changed. Unfortunately, there is no weapon level set in a data file that can be easily read. In fact, the source of weapon level seems to be a calculation in the game code (a function called getItemLevel), and then the sell price is another calculation based on that level (from MeleeWeapon.cs: weapon level x 100, then divided by 2 = sell price).

The most important thing is that weapon levels and sell prices shown on the page are accurate, but including the changes in a history section is also of some importance. Any research/further info. is welcome!

Including the information in the modding section would be a big plus. margotbean (talk) 14:59, 21 March 2021 (UTC)

My initial assumptions seemed to make sense but it was based from backwards logic where I knew the result and was looking for code that could lead to said result. I now actually don't think the divide by 2 sellprice is correct anymore, due to the fact that when I edited some Weapons on the German wiki I noticed the pre 1.5 weapon levels were much higher than now - e.g. Lava Katana was 15 and Galaxy Sword 26, vs now post 1.5 lvls 10 and 13 respectively. So the mystery is where exactly the change took place and whether itemlevels truly are not "pulled" from somewhere but rather calculated, in which case the calculation must have changed to drastically decrease item levels (and thus sellprice). Dubesor (talk) 20:36, 21 March 2021 (UTC)
the decompiled code was kind of a messy headache to read, but after testing in excel (so much easier than calculating manually!) I could finally decypher a working formula. added it to the page but since I did all the testing in excel on various weapons I am not 100% if I nailed the transition into wiki e.g. bracket placements (maths is hard) Dubesor (talk) 15:54, 28 March 2021 (UTC)