Skip to content

Commit

Permalink
add loot to library, combat, and boss rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
liqMix committed Jun 29, 2024
1 parent cf98a6f commit 665606b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions internal/game/room.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,20 @@ func (r *RoomKind) GetRoomEnemy(roomSize RoomSize, storyLevel int) EnemyKind {
}

// Equipment you can find in room
// hmm, kinda defeats the current structure of equipment in yaml if we have to add new equipment here
func (r *RoomKind) Equipment() []*string {
var types []EquipmentType = nil
switch *r {
case Armory:
types := []EquipmentType{EquipmentTypeWeapon, EquipmentTypeArmor}
return GetEquipmentNamesWithTypes(types)
types = []EquipmentType{EquipmentTypeWeapon, EquipmentTypeArmor}
case Library:
case Treasure:
types := []EquipmentType{EquipmentTypeAccessory}
types = []EquipmentType{EquipmentTypeAccessory}
case Boss:
types = []EquipmentType{EquipmentTypeWeapon, EquipmentTypeArmor, EquipmentTypeAccessory}
case Combat:
types = []EquipmentType{EquipmentTypeWeapon, EquipmentTypeArmor, EquipmentTypeAccessory}
}
if types != nil {
return GetEquipmentNamesWithTypes(types)
}
return nil
Expand Down

0 comments on commit 665606b

Please sign in to comment.