Commit Graph

21 Commits

Author SHA1 Message Date
guiyomu-dev
285129e47e fix names 2026-02-14 19:33:39 +01:00
crazywh1t3
211abf01f0 add new location types and enhance inventory structure for shared stash support and DLC support. 2026-02-13 22:28:16 +02:00
guiyomu-dev
828db2029f adjustment 2026-02-13 12:34:48 +01:00
crazywh1t3
52f9079ba1 new txt files and generated .go files
- Implemented a new script to extract item names from items.go and generate a corresponding name.go file with constants and utility functions for name retrieval.
2026-02-12 18:08:28 +02:00
Genqila
b510968f7d style: fix codegen formatting and run gofmt after generation 2026-01-15 22:17:32 +01:00
CarlPoppa1
d2da4b1919 Add BodyLoc1 and BodyLoc2 as an array in item Type struct (#77)
* Added BodyLocs to type struct
To hold array of BodyLoc1 and BodyLoc2 from itemtypes.txt

* Updated itemtype template to import BodyLoc1 and BodyLoc2 as an array

* New generated itemtypes.go with BodyLocs array

* Use LocationType instead of string for BodyLocs

* Added missing ItemTypes declaration

---------

Co-authored-by: CarlPoppa <hilikus99@protonmail.com>
2025-02-28 22:01:13 +09:00
elb
120c2ba144 Prefix,Suffix,LevelReq Socketed items on bases, bodyloc, Merc equipment (#74)
* Prefix,Suffix, Socketed with base, bodyloc, Merc equipment

Will add better description later:

Item that has socketed items now display their linked runes/jewels/gems in accurate order

Rare prefix, rare suffix id
Magic prefix1,2,3  magic suffix1,2,3
Prefix1 also used to tell wich runeword it is
Spirit 20635, cta 20519 , infinity 20566 see : getlocalestring.txt

Mercenary equipment now displaying in inventory list . Also has custom location : mercenary instead of equipped

Bodyloc :
	// Body locations
	LocNone              LocationType = "none"
	LocHead              LocationType = "head"
	LocNeck              LocationType = "neck"
	LocTorso             LocationType = "torso"
	LocLeftArm           LocationType = "left_arm"
	LocRightArm          LocationType = "right_arm"
	LocLeftRing          LocationType = "left_ring"
	LocRightRing         LocationType = "right_ring"
	LocBelt              LocationType = "belt"
	LocFeet              LocationType = "feet"
	LocGloves            LocationType = "gloves"
	LocLeftArmSecondary  LocationType = "left_arm_secondary"
	LocRightArmSecondary LocationType = "right_arm_secondary"

	Note that if you begin game on secondary slot it will be left_arm  then primary will be  left_arm_secondary (inversed):  With pr 62 (activeweaponslot) we will be able to solve this potential issue.

* small optimization

* Socketed items to base from pointer

new helper functions.
AutoAffix offset.

* remove helpers fnc, flag isEquipped to HasBeenEquipped

* Runewords names mapped

* helper function not needed

* Optimization

* adjust pre-allocations

* readd removed itemloc comment

* Addex prefix/suffix to rules .nip

new structure:
[Type], [Quality],[Class], [Name], [Flag], [Color], [Prefix], [Suffix]  #  Stats

Exemple : [name] == ring && [quality] == rare && [suffix] == 174 #

Any magic ring with suffix 'of The Apprentice'  ( 10 faster cast rate)

Will be useful for trophy items with fool/cruel  [prefix] == 1416 [prefix] == 1273

* LevelReq + Affixes mapping rare/magic/base/runewords. Nip parser LevelReq

* Unique and set items mapping + LevelReq
2025-02-16 23:02:03 +02:00
Hector
04f45d3069 Regenerate code from txts 2024-12-16 16:27:30 +01:00
Arto Simonyan
8239f1bbe4 Add Crafted Quality String (#42) 2024-09-14 17:10:07 +03:00
TDL
7b42e27aba Added extra item info (#41) 2024-09-10 23:04:47 +09:00
Héctor Giménez
e4b4f8e1b5 Add Location struct and fixed possible panic 2024-05-19 20:40:20 +09:00
Héctor Giménez
aa2a1aaeb3 fetch static data from txt files and properly get all the item stats... maybe? 2024-05-08 21:31:40 +09:00
Héctor Giménez
5dc9f42969 added colossalsword since naming is wrong, anyways this needs to be replaced by item IDs 2024-05-05 13:53:58 +09:00
Héctor Giménez
bb0ec2555d NIP parser v2 (#17) 2024-05-05 12:15:08 +09:00
Héctor Giménez
e27064213f check if item is being hold 2024-04-29 22:07:54 +09:00
13413j1j13j5315n13
5b4965ac95 Add more item type mappings (#13) 2024-03-26 19:57:42 +09:00
Héctor Giménez
4d8e4c00a7 add KeyToTheCairnStones quest item 2023-09-02 13:57:39 +09:00
Héctor Giménez
1c8aab1580 Item refactor and more (#1) 2023-08-18 22:33:54 +09:00
Héctor Giménez
7bfa29f2a4 tweak item types 2023-03-14 23:06:28 +09:00
Héctor Giménez
66dd506ba7 basic item filter wip 2023-03-12 19:32:50 +09:00
Héctor Giménez
8600c2e2f6 Add data structures, it requires tons of refactor but it's more or less working 2023-03-11 21:28:33 +09:00