Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Add floor operator (_) | 819304b561d474e962afa7397ef68ffae83e8649 | mse | 2021-08-31 13:49:57 |
Switch inventories and stats to floating-point | c6e4142e664648ca8f4aa913b48526093c985987 | mse | 2021-08-31 13:35:20 |
Switch scripting to floating-point & code comments | eb067496f4edb4420c05a09dc034ad0a25ad1e56 | mse | 2021-08-31 11:06:01 |
Add top-level command: GOSUB | 62e9520aec0471fe023ead290595f735a30eb806 | mse | 2021-08-26 09:31:27 |
Add persistent VN stats | 2d1ffc35afd8ae0f477cbd5aac0559fc02571600 | mse | 2021-08-23 10:44:16 |
Bribes increase karma | 643f0fc6da65316aa799bbe00cea2030e2c1ccd6 | mse | 2021-08-17 08:16:36 |
Add command: #RUMBLE <intensity> <milliseconds> | 02964b2ecc57a48192522ef369e33c4912d2f0d2 | mse | 2021-08-16 07:17:40 |
Reset position in non-mouse menu selection | c21eb6a9d238fa1909dbbbc49907ad09bfca52c8 | mse | 2021-08-16 03:30:49 |
Add haptic rumble for combat | 65ff172308b0ba26b8930e8e83eb41bd36c6b008 | mse | 2021-08-15 06:11:25 |
Reduce joystick sensitivity | 3804492a52d36c40cd51d42a971fe92f4fdd52ba | mse | 2021-08-14 22:37:19 |
Set audio buffer 1024 to reduce latency | b1733b33b3342b32f08e1bafb5baf63ed7db419e | mse | 2021-07-11 02:56:22 |
Update readme, deps, bump to v0.5.0 | 2f96bc1fe9af48874750f2ba507eda5d704313b0 | mse | 2021-07-05 12:14:52 |
New license | c9932a52aaa81e6b136510157bfc3ce3e10ab800 | mse | 2021-07-04 16:01:57 |
Fix joystick dead zone | 303dc3276d27f2a123e5370b31b79cdf87afc879 | mse | 2021-06-26 07:09:28 |
Windows-compatible locale | 65244a8360ad6a65fea64f43f115f5c93bf966dd | mse | 2021-06-11 17:13:26 |
Detect language using std::locale | 60f1680d73e559dc85f6b85e9ca69cb9be717ae6 | mse | 2021-06-09 16:11:30 |
Rename data -> base and load game as mod | ec3b8aa10ee005d89d897b43c68cecd4b9ea8a75 | mse | 2021-06-07 12:31:53 |
Replace function with macro | cc34567bf5b5503d90ea989004606fcca240d3cd | mse | 2021-05-30 20:14:02 |
Bump version to 0.4.4 | 4b4eb20f18d047f34a94456b441ee55cc4c6248b | mse | 2021-05-30 03:48:53 |
Initial modding support with -m parameters | 94429b99dd3c85d67d8a9fe8b2faee06c1e9fcde | mse | 2021-05-29 22:01:40 |
File | Lines added | Lines deleted |
---|---|---|
include/dialogue.h | 3 | 1 |
File include/dialogue.h changed (mode: 100755) (index 53c9c2d..05aee01) | |||
... | ... | int Talk::parseJSON( std::string &text ){ | |
244 | 244 | for( auto o : s.value["exec"].getObject() ){ | for( auto o : s.value["exec"].getObject() ){ |
245 | 245 | std::string key = viewToString( o.name ); | std::string key = viewToString( o.name ); |
246 | 246 | char op = ':'; | char op = ':'; |
247 | if( key.length() > 0 && key.find_last_of( "=!<>?%*/+-" ) == key.length() - 1 ){ | ||
247 | if( key.length() > 0 && key.find_last_of( "=!<>?%*/+-_" ) == key.length() - 1 ){ | ||
248 | 248 | op = key.back(); | op = key.back(); |
249 | 249 | key.resize( key.length() - 1 ); | key.resize( key.length() - 1 ); |
250 | 250 | } | } |
... | ... | void Talk::operate( Operation o ){ | |
337 | 337 | case '+': out += in; | case '+': out += in; |
338 | 338 | break; | break; |
339 | 339 | case '-': out -= in; | case '-': out -= in; |
340 | break; | ||
341 | case '_': out = std::floor( in ); | ||
340 | 342 | } | } |
341 | 343 | setVariable( o.key, out ); | setVariable( o.key, out ); |
342 | 344 | } | } |