~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/map_objects/tribes/production_program.h

  • Committer: The Widelands Bunnybot
  • Date: 2020-08-15 06:09:43 UTC
  • Revision ID: bunnybot@widelands.org-20200815060943-j3nda0lqh09nj8kl
Use named parameters in ActMine (#4099)

The worker experience parameter is now optional.

(by gunchleoc)
2fc976bf387e701d88a32754904994ca636600a1

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
 
452
452
        private:
453
453
                DescriptionIndex resource_;
454
 
                uint8_t distance_;  // width/radius of mine
455
 
                uint8_t max_;       // Can work up to this percent (of total mountain resources)
456
 
                uint8_t chance_;    // odds of finding resources from empty mine
457
 
                uint8_t training_;  // probability of training in _empty_ mines
 
454
                uint8_t workarea_;            // width/radius of mine
 
455
                unsigned max_resources_;      // Can work up to this percent (of total mountain resources)
 
456
                unsigned depleted_chance_;    // odds of finding resources from empty mine
 
457
                unsigned experience_chance_;  // probability of training in _empty_ mines
458
458
        };
459
459
 
460
460
        struct ActCheckSoldier : public Action {