Skip to content

Commit c2d2fef

Browse files
committed
add player civilization to payload
1 parent 17e781b commit c2d2fef

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

GameStateHook.lua

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function listener()
66
playerTurns = playerTurns .. "{" ..
77
'"id" : ' .. tostring(a:GetID()) .. "," ..
88
'"nickName" : ' .. '"' .. a:GetNickName() .. '"' .. "," ..
9+
'"civilization" : ' .. '"' .. a:GetCivilizationShortDescription() .. '"' .. "," ..
910
'"isTurnComplete" : ' .. tostring(a:HasReceivedNetTurnComplete()) .. "," ..
1011
'"isOnline" : ' .. tostring(Network.IsPlayerConnected(a:GetID())) .. "," ..
1112
'"isAlive" : ' .. tostring(a:IsAlive()) ..

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ Civ5 Pitboss Webhook will send an HTTP POST request with a JSON body.
2828
{
2929
"id": 1,
3030
"nickName": "Atreides",
31+
"civilization": "Morocco",
3132
"isTurnComplete": false,
3233
"isOnline": true,
3334
"isAlive": true
3435
},
3536
{
3637
"id": 2,
3738
"nickName": "bobby_joe",
39+
"civilization": "America",
3840
"isTurnComplete": true,
3941
"isOnline": false,
4042
"isAlive": true

0 commit comments

Comments
 (0)