View Issue Details

IDProjectCategoryView StatusLast Update
0002684Spring engineGeneralpublic2013-03-20 13:10
ReporterGoogle_Frog Assigned TojK  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Product Version0.82.7+git 
Fixed 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

Activities

FLOZi

2011-10-05 20:02

reporter   ~0007459

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)

Google_Frog

2011-10-06 08:53

reporter   ~0007460

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

Google_Frog

2013-03-20 12:06

reporter   ~0010132

Apparently there was something wrong?

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