fmt.Fprintf(system.colonizedBy,"mining colony on %s pays you %d space duckets. total: %d space duckets.\n",system.name,reward,system.colonizedBy.money)
fmt.Fprintf(system.colonizedBy,"mining colony on %s pays you %d space duckets. total: %d space duckets.\n",system.name,reward,system.colonizedBy.money)
}
}
After(5*time.Second,fn)
After(5*time.Second,fn)
@ -214,7 +214,7 @@ var colonizeCommand = &Command{
}
}
ifconn.money>2000{
ifconn.money>2000{
conn.money-=2000
conn.Withdraw(2000)
system.colonizedBy=conn
system.colonizedBy=conn
fmt.Fprintf(conn,"set up a mining colony on %s\n",conn.System().name)
fmt.Fprintf(conn,"set up a mining colony on %s\n",conn.System().name)
After(5*time.Second,fn)
After(5*time.Second,fn)
@ -279,7 +279,7 @@ var mkBombCommand = &Command{
fmt.Fprintf(conn,"not enough money! Bombs cost 800 space duckets to build, you only have %d in the bank.\n",conn.money)
fmt.Fprintf(conn,"not enough money! Bombs cost 800 space duckets to build, you only have %d in the bank.\n",conn.money)