Improving Types in this Code

BlitzMax Forums/BlitzMax Beginners Area/Improving Types in this Code

Type WClass
	Field Name$
	Field Atk#, Str#, Skl#
End Type

Type WType
	Field Name$
	Field Speed
	Field Modif
End Type

Type WElement
	Field Name$
	Field DamageX2:WElement
End Type

'make an instance for each of your original types using these with global variables.
I would probably do:
Type Weapon
	Field ClassName$, TypeName$, ElementName$
	Field Atk#, Str#, Skl#
	Field Speed, Modif
	Field DamageX2$
End Type


Although, either method could work, and either method could be good, however for different situations.