Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for each(var _loc2_ in param1.split(","))
- {
- _loc3_ = 1;
- if(_loc2_.indexOf("-") > -1)
- {
- _loc3_ = 0.5;
- }
- if(_loc2_.indexOf("+") > -1)
- {
- _loc3_ = 1.5;
- }
- if(_loc2_.indexOf("--") > -1)
- {
- _loc3_ = 0.1;
- }
- if(_loc2_.indexOf("++") > -1)
- {
- _loc3_ = 2;
- }
- if(_loc2_.indexOf("forest") > -1)
- {
- vegetation = vegetation * _loc3_;
- }
- if(_loc2_.indexOf("mountain") > -1)
- {
- rockyness = rockyness * _loc3_;
- }
- if(_loc2_.indexOf("game") > -1)
- {
- game = game * _loc3_;
- }
- if(_loc2_.indexOf("fruit") > -1)
- {
- fruit = fruit * _loc3_;
- }
- if(_loc2_.indexOf("fish") > -1)
- {
- fish = fish * _loc3_;
- }
- if(_loc2_.indexOf("metal") > -1)
- {
- metal = metal * _loc3_;
- }
- if(_loc2_.indexOf("crop") > -1)
- {
- crop = crop * _loc3_;
- }
- if(_loc2_.indexOf("water") > -1)
- {
- if(_loc3_ > 1)
- {
- wetness = 0.2 * _loc3_;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement