Bug 54942

Summary: Communicate debt objects to clients
Product: [Applications] atlantik Reporter: esigra
Component: monopdAssignee: Rob Kaper <atlantik-devel>
Status: RESOLVED FIXED    
Severity: normal CC: gradator
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch for CVS from today

Description esigra 2003-02-21 00:51:20 UTC
Version:           CVS >= 20030212 (using KDE KDE 3.1)
Installed from:    Compiled From Sources
OS:          Linux

monopd allows building houses when in debt. That should not be allowed. Maybe unmortgaging shouldn't be allowed either.
Comment 1 esigra 2003-02-22 20:03:48 UTC
Created attachment 1029 [details]
Patch for CVS from today
Comment 2 Rob Kaper 2003-02-25 04:23:13 UTC
Even though it doesn't make much sense and will make getting out of debt much 
harder, the official rules do not seem to disallow this. I'm pretty sure that 
mortgaging is allowed at all times, and building too (although some people think 
the rules specify it must be your turn, but I can't even find anything like that in the 
official rules either). 
 
Comment 3 esigra 2003-02-25 13:53:21 UTC
Then it is up to the client to stop (or at least warn) the user from doing these unwise 
actions. Monopd should send a playerupdate playerid=whatever debt=amount. 
Comment 4 Rob Kaper 2003-03-08 18:01:29 UTC
Ok, will make sure the API is to be extended so debts can be communicated to clients. 
Comment 5 Rob Kaper 2003-06-22 04:51:20 UTC
Monopd now sends a hasdebt property for players (0.8.1/CVS >= 20030622) and 
Atlantik (both branches) now uses it to disable Mortgage and Build actions.