Additional work on entities and themes
This commit is contained in:
		@@ -5,10 +5,11 @@ type stat struct {
 | 
			
		||||
	name string
 | 
			
		||||
	short string
 | 
			
		||||
	value int
 | 
			
		||||
	current int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type attributes struct {
 | 
			
		||||
	health       stat 
 | 
			
		||||
	health       stat
 | 
			
		||||
	strength     stat
 | 
			
		||||
	endurance    stat
 | 
			
		||||
	dexterity    stat
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ func (p *Player) AdjustStats(which string, newvalue int) *Player {
 | 
			
		||||
	case "endurance","end":
 | 
			
		||||
		p.stats.endurance.value = newvalue
 | 
			
		||||
		p.stats.health.value = 5 + (5*newvalue)
 | 
			
		||||
		p.stats.health.current = 5 + (5*newvalue)
 | 
			
		||||
	case "wisdom","wis":
 | 
			
		||||
		p.stats.wisdom.value = newvalue
 | 
			
		||||
	case "intelligence","int":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user