laneya2

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

commit
095bbf211a10714ae5d08fefc156345a1b1302d9
parent
dd479c43b0f427a073c237b62162351faa17b2a9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-10-08 21:16
add more items

Diffstat

M items.go 42 ++++++++++++++++++++++++++++++++++++++++++

1 files changed, 42 insertions, 0 deletions


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

@@ -86,6 +86,22 @@ var Items = map[string]Item{
   86    86 		Value:   300,
   87    87 		Defense: 10,
   88    88 	},
   -1    89 	"Masamune": Item{
   -1    90 		Value:  1000,
   -1    91 		Attack: 12,
   -1    92 		Speed:  5,
   -1    93 	},
   -1    94 	"Bastard Sword": Item{
   -1    95 		Type:   WEAPON,
   -1    96 		Value:  1200,
   -1    97 		Attack: 15,
   -1    98 	},
   -1    99 	"Excalibur": Item{
   -1   100 		Type:        WEAPON,
   -1   101 		Value:       1500,
   -1   102 		Attack:      25,
   -1   103 		LineOfSight: 1,
   -1   104 	},
   89   105 
   90   106 	// armor
   91   107 	"Leather Armor": Item{
@@ -120,6 +136,20 @@ var Items = map[string]Item{
  120   136 		Value: 650,
  121   137 		Speed: 10,
  122   138 	},
   -1   139 	"Wizard's Robe": Item{
   -1   140 		Type:        ARMOR,
   -1   141 		Value:       700,
   -1   142 		Defense:     4,
   -1   143 		LineOfSight: 1,
   -1   144 		Speed:       10,
   -1   145 	},
   -1   146 	"Forged Armor": Item{
   -1   147 		Type:        ARMOR,
   -1   148 		Value:       1000,
   -1   149 		Defense:     15,
   -1   150 		Speed:       -10,
   -1   151 		LineOfSight: -1,
   -1   152 	},
  123   153 	"Spiked Armor": Item{
  124   154 		Type:    ARMOR,
  125   155 		Value:   1200,
@@ -127,6 +157,18 @@ var Items = map[string]Item{
  127   157 		Defense: 6,
  128   158 		Speed:   -10,
  129   159 	},
   -1   160 	"Obsidian Armor": Item{
   -1   161 		Type:    ARMOR,
   -1   162 		Value:   1500,
   -1   163 		Defense: 15,
   -1   164 	},
   -1   165 	"Dragon Scale Armor": Item{
   -1   166 		Type:        ARMOR,
   -1   167 		Value:       2000,
   -1   168 		Defense:     20,
   -1   169 		Speed:       -2,
   -1   170 		HealthTotal: 10,
   -1   171 	},
  130   172 }
  131   173 
  132   174 func RandomItem() string {