2025-08-17 23:14 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002684Spring engineGeneralpublic2013-03-20 13:10
ReporterGoogle_Frog 
Assigned TojK 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionno change required 
Product Version0.82.7+git 
Target VersionFixed in Version89.0.1+git 
Summary0002684: Configurable EMP decline
DescriptionA variable in modrules that controls the decay rate of EMP damage. Currently it is hardcoded to 100% -> 0% in 40 seconds.

Specifically for the version I looked at in https://github.com/spring/spring/blob/develop/rts/Sim/Units/Unit.cpp

"float CUnit::empDecline = 2.0f * (float)UNIT_SLOWUPDATE_RATE / (float)GAME_SPEED / 40.0f;"

The magic number "40.0f" means 40 seconds. This would need replacing with a value from modrules.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007459

FLOZi (reporter)

A per unitdef number might be nicer (Generally I think modrules is a little ugly for something like this which needn't be generalised for all units)

~0007460

Google_Frog (reporter)

Yep per unit def is even better. But that may have been a bit much to hope for.

~0010132

Google_Frog (reporter)

Apparently there was something wrong?
+Notes

-Issue History
Date Modified Username Field Change
2011-10-05 15:26 Google_Frog New Issue
2011-10-05 20:02 FLOZi Note Added: 0007459
2011-10-06 08:53 Google_Frog Note Added: 0007460
2012-08-27 12:54 Kloot Status new => resolved
2012-08-27 12:54 Kloot Fixed in Version => 89.0.1+git
2012-08-27 12:54 Kloot Resolution open => fixed
2012-08-27 12:54 Kloot Assigned To => Kloot
2013-03-20 12:06 Google_Frog Note Added: 0010132
2013-03-20 12:06 Google_Frog Status resolved => feedback
2013-03-20 12:06 Google_Frog Resolution fixed => reopened
2013-03-20 13:10 jK Status feedback => closed
2013-03-20 13:10 jK Assigned To Kloot => jK
2013-03-20 13:10 jK Resolution reopened => no change required
+Issue History