laneya2

cave exploration game
git clone https://git.ce9e.org/laneya2.git

commit
dd479c43b0f427a073c237b62162351faa17b2a9
parent
dcf9d32efde6fea35c079fda6bb4bbba96977d10
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-10-08 21:16
make equipment more impactful

Diffstat

M items.go 61 +++++++++++++++++++++++++++++++------------------------------

1 files changed, 31 insertions, 30 deletions


diff --git a/items.go b/items.go

@@ -56,76 +56,77 @@ var Items = map[string]Item{
   56    56 	"Butterknive": {
   57    57 		Type:   WEAPON,
   58    58 		Value:  50,
   59    -1 		Attack: 1,
   -1    59 		Attack: 2,
   60    60 	},
   61    61 	"Sword": {
   62    62 		Type:   WEAPON,
   63    63 		Value:  150,
   64    -1 		Attack: 4,
   -1    64 		Attack: 8,
   65    65 	},
   66    66 	"Battleaxe": Item{
   67    67 		Type:   WEAPON,
   68    68 		Value:  500,
   69    -1 		Attack: 6,
   -1    69 		Attack: 12,
   70    70 		Speed:  -5,
   71    71 	},
   72    72 	"Daggers": Item{
   73    73 		Type:   WEAPON,
   74    74 		Value:  300,
   75    -1 		Attack: 2,
   -1    75 		Attack: 4,
   76    76 		Speed:  5,
   77    77 	},
   78    78 	"Sting": Item{
   79    79 		Type:        WEAPON,
   80    80 		Value:       400,
   81    -1 		Attack:      3,
   -1    81 		Attack:      6,
   82    82 		LineOfSight: 2,
   83    83 	},
   84    84 	"Shield": Item{
   85    85 		Type:    WEAPON,
   86    86 		Value:   300,
   87    -1 		Defense: 6,
   -1    87 		Defense: 10,
   88    88 	},
   89    89 
   90    90 	// armor
   91    91 	"Leather Armor": Item{
   92    92 		Type:    ARMOR,
   93    93 		Value:   100,
   94    -1 		Defense: 2,
   95    -1 		Speed:   -1,
   96    -1 	},
   97    -1 	"Shining Armor": Item{
   98    -1 		Type:        ARMOR,
   99    -1 		Value:       500,
  100    -1 		Defense:     3,
  101    -1 		LineOfSight: 3,
  102    -1 		Speed:       -5,
   -1    94 		Defense: 4,
   -1    95 		Speed:   -2,
  103    96 	},
  104    97 	"Heavy Armor": Item{
  105    -1 		Type:    ARMOR,
  106    -1 		Value:   400,
  107    -1 		Defense: 5,
  108    -1 		Speed:   -10,
  109    -1 	},
  110    -1 	"Spiked Armor": Item{
  111    -1 		Type:    ARMOR,
  112    -1 		Value:   1000,
  113    -1 		Attack:  2,
  114    -1 		Defense: 3,
  115    -1 		Speed:   -10,
   -1    98 		Type:        ARMOR,
   -1    99 		Value:       300,
   -1   100 		Defense:     10,
   -1   101 		Speed:       -10,
   -1   102 		LineOfSight: -1,
  116   103 	},
  117   104 	"Cloak": Item{
  118   105 		Type:        ARMOR,
  119    -1 		Value:       400,
  120    -1 		Defense:     1,
   -1   106 		Value:       250,
   -1   107 		Defense:     2,
  121   108 		LineOfSight: 1,
  122    -1 		Speed:       5,
   -1   109 		Speed:       2,
   -1   110 	},
   -1   111 	"Shining Armor": Item{
   -1   112 		Type:        ARMOR,
   -1   113 		Value:       600,
   -1   114 		Defense:     6,
   -1   115 		LineOfSight: 3,
   -1   116 		Speed:       -5,
  123   117 	},
  124   118 	"Body Oil": Item{
  125   119 		Type:  ARMOR,
  126    -1 		Value: 750,
   -1   120 		Value: 650,
  127   121 		Speed: 10,
  128   122 	},
   -1   123 	"Spiked Armor": Item{
   -1   124 		Type:    ARMOR,
   -1   125 		Value:   1200,
   -1   126 		Attack:  4,
   -1   127 		Defense: 6,
   -1   128 		Speed:   -10,
   -1   129 	},
  129   130 }
  130   131 
  131   132 func RandomItem() string {