Skip to content

Commit

Permalink
Merge pull request #13 from cech12/develop
Browse files Browse the repository at this point in the history
- add a new mod where you can change the dropping chance of resources…
  • Loading branch information
cech12 authored Aug 1, 2016
2 parents cf27578 + 7be7013 commit 2a8ec22
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
$if:CIV_DROPS

$start
$replace
if {[im_in_campaign]} {
set zone 0
set UMK 0;set UTP 0; set UUM 0
catch {set UMK [sm_get_event Uebergang_Met_Kris]}
if {$UMK} {
set zone 3
} else {
catch {set UTP [sm_get_event Titanic_Pumpe_aktiviert]}
if {$UTP} {
set zone 2
} else {
catch {set UUM [sm_get_event Uebergang_Urw_Met]}
if {$UUM} {
set zone 1
}
}
}
} else {
global civ_state
set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
}
$with
global civ_state
set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
$end

$ifend


$start
$replace
if {[im_in_campaign]} {
set rndval 0.01
} else {
set rndval 0.04
}
$with
set rndval [expr {$print:DROP_CHANCE / 100.0}]
$end


3 changes: 3 additions & 0 deletions Mods/DroppingResources/description.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name:DroppingResources
tooltip:Change dropping chance and let resources drop in dependence to your civilization level
author:cech12 (idea from iGilga)
2 changes: 2 additions & 0 deletions Mods/DroppingResources/settings.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Var:CIV_DROPS;Type:bool;GameValue:false;StdValue:true;Description:Drop better items with a better civilization level while digging
Var:DROP_CHANCE;Type:int;GameValue:4;StdValue:4;MinValue:1;MaxValue:100;Description:Drop chance while digging (percent)

0 comments on commit 2a8ec22

Please sign in to comment.