Giter VIP home page Giter VIP logo

Comments (7)

cech12 avatar cech12 commented on July 20, 2024 1

No I will make a new mod "DroppingResources" where you can change the dropping chance, too.

from digglesmodmanager.

iGilga avatar iGilga commented on July 20, 2024

And row code chace dropping resources:
set mix [lindex {{0.0 1.1} {0.0 0.7 0.9 1.1} {0.0 0.5 0.66 0.94 1.1} {0.0 0.3 0.45 0.7 0.8 1.1}} $zone]

from digglesmodmanager.

cech12 avatar cech12 commented on July 20, 2024

Hey iGilga,

I like that! :)
So when I do this replacement, I will get the resources depending on my civilization level. That worked in solo before and after the replacement it works also in the campaign.
Is that correct?

from digglesmodmanager.

iGilga avatar iGilga commented on July 20, 2024

Hi, this change will work on sandbox and campain.
Mode player vs player work with code:

else {
  global civ_state
  set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
 }

In fact PvP = sandbox = campain. Example research Schmelze will dropping Stein Eisenerz Kohle

from digglesmodmanager.

cech12 avatar cech12 commented on July 20, 2024

Ah okay,
I test the value of [im_in_campaign]. In campaign and sandbox it is 1 and in PvP it is 0.
So this change edits the dropping resources in sandbox and campaign.

That is very interesting! :)
I can add a checkbox to the "ChangeGameSettings" mod, where you can switch this on and off. Is that okay? Or do you have a better idea?

from digglesmodmanager.

iGilga avatar iGilga commented on July 20, 2024

Okay.

from digglesmodmanager.

cech12 avatar cech12 commented on July 20, 2024

Finished #13 :)

from digglesmodmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.