Commit 4fcec49e authored by owlo's avatar owlo

inventory handling!

parent 0908ab29
No preview for this file type
......@@ -65,7 +65,7 @@ type ActorS struct {
Wis int
Con int
Tec int
Inventory map[string]string
Inventory map[int]string
Equipment map[string]string
Summary string
LastBork string
......
......@@ -89,11 +89,11 @@ func createUser(username string, password string) bool {
userActor.Wis = 15
userActor.Con = 15
userActor.Tec = 1
userActor.Inventory = map[string]string{
"disc": "A glowing disc.",
userActor.Inventory = map[int]string{
0: "A glowing disc.",
}
userActor.Equipment = map[string]string{
"gown": "A long flowing rainbow gown.",
"body": "A long flowing rainbow gown.",
}
userActor.Inbox = hostname + "#inbox/" + username
userActor.Outbox = hostname + "#outbox/" + username
......
This diff is collapsed.
{"Password":"bork","Str":15,"Dex":15,"Int":15,"Wis":15,"Con":15,"Tec":1,"Inventory":{"0":"A glowing disc."},"Equipment":{"body":"A long flowing rainbow gown."},"Summary":"","LastBork":"","Source":null,"Type":"","Following":"http://snowcrash.network#following/guarddoggo","Followers":"http://snowcrash.network#followers/guarddoggo","Liked":"","Inbox":"http://snowcrash.network#inbox/guarddoggo","Outbox":"http://snowcrash.network#outbox/guarddoggo","Url":"","Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":"","Id":"","Context":null,"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":null,"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null},"Streams":{"Location":"","Obj":{"Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":{"Content":"","Summary":"","TypeS":"","MediaType":""},"Context":{"Context":"","Summary":"","TypeS":"","Items":null},"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":{"TypeS":"","Name":"","Url":"","Width":0,"Height":0},"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Summary":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","Url":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null}},"TotalItems":0,"Current":null,"First":"","Last":"","Items":null},"PreferredUsername":"guarddoggo","Endpoints":{}}
\ No newline at end of file
{"Password":"bork","Str":15,"Dex":15,"Int":15,"Wis":15,"Con":15,"Tec":1,"Inventory":{"disc":"A glowing disc."},"Equipment":{"gown":"A long flowing rainbow gown."},"Summary":"","LastBork":"","Source":null,"Type":"","Following":"http://snowcrash.network#following/guarddoggo","Followers":"http://snowcrash.network#followers/guarddoggo","Liked":"","Inbox":"http://snowcrash.network#inbox/guarddoggo","Outbox":"http://snowcrash.network#outbox/guarddoggo","Url":"","Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":"","Id":"","Context":null,"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":null,"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null},"Streams":{"Location":"","Obj":{"Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":{"Content":"","Summary":"","TypeS":"","MediaType":""},"Context":{"Context":"","Summary":"","TypeS":"","Items":null},"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":{"TypeS":"","Name":"","Url":"","Width":0,"Height":0},"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Summary":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","Url":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null}},"TotalItems":0,"Current":null,"First":"","Last":"","Items":null},"PreferredUsername":"guarddoggo","Endpoints":{}}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment