Skip to content

Commit

Permalink
Add some station info to view_laws.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcbride committed Jan 2, 2016
1 parent 38d2d3e commit 207b8bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/Lacuna/RPC/Body.pm
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,21 @@ sub view_laws {
return {
status => $self->format_status($session, $body),
laws => \@out,
station => {
id => $body->id,
name => $body->name,
zone => $body->zone,
x => $body->x,
y => $body->y,,,
empire => {
id => $body->empire_id,
name => $body->empire->name,
},
alliance => {
id => $body->alliance_id,
name => $body->alliance->name,
},
},
};
}
else {
Expand Down

0 comments on commit 207b8bc

Please sign in to comment.