patchFreeciv - Patches: patch #4721, Effect for sell/disband yield

 
 
Show feedback again

patch #4721: Effect for sell/disband yield

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Mon 26 May 2014 01:54:21 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 26 May 2014 01:54:21 PM UTC, original submission:

Effects which control how much you get back if you sell a building or disband a unit. Percentage of original nominal shield cost, with 0 permitted. Checked at time of sell/disband, and applicability controlled with requirements like "Building", "Bank", "Local".

This will remove some current hardcoding (e.g. getting 50% of shields back for disband). It would also enable effects like resale value decreasing as technology improves, and allow plugging loopholes in other proposals of mine (adjustable production rate).

Selling only applies to buildings, and disband to units; probably these are separate effects Sell_Yield and Disband_Yield.

Value of 0 does not prevent disband or sale, as you might still need to get rid of items because they're blocking something else. (But may need some UI gloss where "sell" becomes "demolish" if you're getting nothing back.)

"Sell All" UI will need some tweaking for possibility of reflect variable sale costs (and you'll take the risk that order of sale affects yield; that possibility is in the hands of ruleset authors).

We might want to change the "sell" packet to include the price the client thinks they're selling at, with the server not selling unless the actual sale price is equal or greater, to avoid disappointment from race conditions. That'd need more UI in the exception case.

This would not apply to caravans' contribution to wonders (if we want to adjust that, make it a new effect).

Jacob Nevins <jtn>
Project Administrator

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jtn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup