Skip to content

Commit

Permalink
BSG Search for Home release
Browse files Browse the repository at this point in the history
Only minor bug fixes and improvements:
- Character name appears on the subject line of the Automatic
Dispatched hand updates
- Now players are notified when they are above the hand limit
(including support for Chief)
- Added the Pegasus expansion Cylon Locations overlay (fixes Jasperhawk#6)
- The spreadsheet now alerts you when you play a Crisis card on the
same turn a Mission was played; however, it allows you to do so (this
is intentional, to enable players who prefers variants)
  • Loading branch information
mawkee authored and mawkee committed Oct 7, 2014
1 parent 7be0406 commit 1b7ec3c
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 4 deletions.
Binary file modified BSG Moderator Template.ods
Binary file not shown.
Empty file modified BSG Moderator Template/Basic/Standard/BoardStatus.xml
100755 → 100644
Empty file.
18 changes: 17 additions & 1 deletion BSG Moderator Template/Basic/Standard/Crisis.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const _MissionDistanceCol = 13
const _MissionRow = _CapricaRow + _CapricaCnt + 4
const _MissionCnt = 8
const _MissionColCnt = 23
const _MissionFlagRow = 0
const _MissionFlagCol = 6

const _ColonyCol = 0
const _ColonyTypeCol = _ColonyCol + 2
Expand Down Expand Up @@ -412,6 +414,11 @@ sub SetBuryCnt (deckID as integer, reset as boolean)
CrisisSheet.getCellByPosition(_BuryCntCol + deckID , _BuryCntRow).value = newval
end sub

sub ClearMissionFlag
GetCrisisSheet
CrisisSheet.getCellByPosition(_MissionFlagCol, _MissionFlagRow).string = ""
end sub

sub ClearCrisisFlags
SetCrisisFlag TRUE, ""
SetCrisisFlag FALSE, ""
Expand Down Expand Up @@ -455,6 +462,13 @@ sub PlayCrisisCard
crisisID = TopofCrisisDeck()
end if

if CrisisSheet.getCellByPosition(_MissionFlagCol, _MissionFlagRow).string = "X" then
rtncd = MsgBox("A Mission was played on this turn. Are you sure you want to play a Crisis card?", 4)
if rtncd <> 6 then
exit sub
end if
end if

if GetPlayerLoc(GetCurrentPlayer()) = "Brig" then
MsgBox "Current Player (" & GetPlayerName(GetCurrentPlayer()) & ") is in the Brig, no crisis can be played."
exit sub
Expand Down Expand Up @@ -522,6 +536,7 @@ sub PlayMissionCard
exit sub
end if

CrisisSheet.getCellByPosition(_MissionFlagCol, _MissionFlagRow).string = "X"
CrisisSheet.getCellByPosition(refcol+1, refrow + crisisID).string = CrisisSheet.getCellByPosition(refcol, refrow + crisisID).string
CrisisSheet.getCellByPosition(refcol+1, refrow + crisisID).CharColor = CrisisSheet.getCellByPosition(refcol, refrow + crisisID).CharColor
CrisisSheet.getCellByPosition(refcol, refrow + crisisID).string = ""
Expand Down Expand Up @@ -1373,7 +1388,8 @@ sub Initialize_CrisisCards

SetCrisisStartButton ("", _CrisisTypeNone)
ClearCrisisFlags

ClearMissionFlag

SetMissionBtns TRUE
SetMissionResultBtns FALSE
ShowMissionBtns ObjectiveIsEarth
Expand Down
Empty file modified BSG Moderator Template/Basic/Standard/Destination.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/GameLog.xml
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions BSG Moderator Template/Basic/Standard/GameState.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ sub NextTurn
SetSuperCrisisBtns
SetCrisisStartButton
ClearCrisisFlags
ClearMissionFlag
SortHands
SetPlayerSelect curmin

Expand Down
Empty file modified BSG Moderator Template/Basic/Standard/Image.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/IonNeb.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Loyalty.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Mutiny.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Quorum.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Reference.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Setup.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Ships.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/Skills.xml
100755 → 100644
Empty file.
7 changes: 6 additions & 1 deletion BSG Moderator Template/Basic/Standard/Util.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ global const _ListMutinyCards = 10
const _PostCardRow = 4 ' cardID starts at 0, but we want the preamble anyway.
const _PostCardCol = 3 ' playerID starts at 1
const _PostQuorumCol = 11
const _PostHandLimitCol = 28
const _PostBenevRow = 29
const _PostAntRow = 30

Expand Down Expand Up @@ -115,7 +116,7 @@ end sub

sub GenerateHandLists
dim playerID, cardID, cardcnt, fileno as integer
dim player, card, filename as string
dim player, card, handlimit, filename as string
dim PostSheet, LoyaltySheet, CrisisSheet as object ' This is the only function that uses the Posting Template tab, so we can leave it local.

PostSheet = ThisComponent.Sheets.getByName("Posting Templates")
Expand All @@ -141,6 +142,10 @@ sub GenerateHandLists
cardID = cardID + 1
card = PostSheet.getCellByPosition(_PostCardCol + playerID, + _PostCardRow + cardID).string
loop
handlimit = PostSheet.getCellByPosition(_PostCardCol + playerID, _PostHandLimitCol).string
if handlimit <> "" then
print #fileno, handlimit
end if
if cardID < 2 then
print #fileno, "You have no Skill Cards."
end if
Expand Down
Empty file modified BSG Moderator Template/Basic/Standard/script-lb.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/z_ChangeLog.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/Standard/z_ToDo.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Basic/script-lc.xml
100755 → 100644
Empty file.
Empty file modified BSG Moderator Template/Scripts/python/bsg-dispatcher.py
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions BSG-Pegasus.scm
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
12 14 6 6 32 6
10 2 7 7 7 7
1 9 38 3 35
1 9 1 2 1 1 1 1 1 5
1 9 1 2 2 1 1 1 1 5
2 1 1 1 1 1 1 3)
)
(names #("Filter" "Turn" "Reserves" "FuelCntr" "Distance"
Expand Down Expand Up @@ -1473,7 +1473,8 @@
;(gimp-drawable-set-visible (vector-ref mylayers (+ (p_getlayerpos "FinalDest") 4)) (btoint (string=? objective "Colony")))

; Show or hide the Cylon Overlay, Pegasus & Treachery
(gimp-layer-set-visible (vector-ref mylayers (p_getlayerpos "CylonLocations")) (btoint (or usePeg useDB)))
(gimp-layer-set-visible (vector-ref mylayers (p_getlayerpos "CylonLocations")) (btoint (and usePeg (not useDB))))
(gimp-layer-set-visible (vector-ref mylayers (+ (p_getlayerpos "CylonLocations") 1)) (btoint useDB))
(gimp-layer-set-visible (vector-ref mylayers (p_getlayerpos "Pegasus")) (btoint usePeg))
(gimp-layer-set-visible (vector-ref mylayers (+ (p_getlayerpos "PoliticsDeck") 5)) (btoint (or usePeg useDB)))
(gimp-layer-set-visible (vector-ref mylayers (+ (p_getlayerpos "PoliticsCntr") 5)) (btoint (or usePeg useDB)))
Expand Down
Binary file modified BSGP - MASTER.xcf
Binary file not shown.

0 comments on commit 1b7ec3c

Please sign in to comment.